Setup
Install Pastoralist and keep your override appendix current
Install Pastoralist and keep your override appendix current
Add Pastoralist as a dev dependency:
npm install pastoralist --save-devOther package managers work too:
pnpm add pastoralist --save-devyarn add pastoralist --devbun add pastoralist --devFor a global CLI, install with npm or Homebrew:
npm install --global pastoralistbrew install yowainwright/tap/pastoralistPreview override tracking:
npx pastoralist doctorRun Pastoralist to update the appendix, or use the guided setup to save workspace and security settings:
npx pastoralistnpx pastoralist initInstall the bundled agent skill:
npx pastoralist init agent-skillTo update tracking after dependency installs, add a postinstall hook:
{ "scripts": { "postinstall": "pastoralist" }}Pastoralist can add that hook automatically:
npx pastoralist --setup-hookPreview the package.json update before writing anything:
npx pastoralist --dry-runPrint summary metrics for CI or release checks:
npx pastoralist --dry-run --summaryPreview unused override removal before applying it:
npx pastoralist --remove-unused --dry-runnpx pastoralist --remove-unusedFor a workspace project with OSV security checks:
{ "pastoralist": { "depPaths": "workspace", "checkSecurity": true, "security": { "provider": "osv", "severityThreshold": "medium", "hasWorkspaceSecurityChecks": true } }}Read Configuration for all options or Workspaces & Monorepos for monorepo setup.
npm install pastoralist --save-devpnpm add pastoralist --save-dev
yarn add pastoralist --dev
bun add pastoralist --devnpm install --global pastoralist
brew install yowainwright/tap/pastoralistnpx pastoralist doctornpx pastoralist
npx pastoralist initnpx pastoralist init agent-skill{
"scripts": {
"postinstall": "pastoralist"
}
}npx pastoralist --setup-hooknpx pastoralist --dry-runnpx pastoralist --dry-run --summarynpx pastoralist --remove-unused --dry-run
npx pastoralist --remove-unused{
"pastoralist": {
"depPaths": "workspace",
"checkSecurity": true,
"security": {
"provider": "osv",
"severityThreshold": "medium",
"hasWorkspaceSecurityChecks": true
}
}
}