Setup
Install Pastoralist and keep your override appendix current
Install Pastoralist and keep your override appendix current
Install Pastoralist as a dev dependency in your project.
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/pastoralistFrom your project root, preview what Pastoralist would change.
npx pastoralist doctorTo save workspace and security settings, run guided setup before updating the appendix.
npx pastoralist init # Opens guided setup for this project.npx pastoralist # Updates the override appendix.Install the bundled skill to give coding agents the project's override tracking commands.
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 changes before applying them locally or in CI.
npx pastoralist --dry-run # Previews the appendix update.npx pastoralist --dry-run --summary # Adds a summary of the proposed changes.npx pastoralist --dry-run --quiet --checkSecurity --strict # Exits with an error if the security scan fails or finds vulnerabilities.Preview unused override removal before applying it:
npx pastoralist --remove-unused --dry-runnpx pastoralist --remove-unusedTo check override tracking on pull requests, copy the Basic PR Check workflow
from the GitHub Action guide into .github/workflows/pastoralist.yml.
For 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 init # Opens guided setup for this project.
npx pastoralist # Updates the override appendix.npx pastoralist init agent-skill{
"scripts": {
"postinstall": "pastoralist"
}
}npx pastoralist --setup-hooknpx pastoralist --dry-run # Previews the appendix update.
npx pastoralist --dry-run --summary # Adds a summary of the proposed changes.
npx pastoralist --dry-run --quiet --checkSecurity --strict # Exits with an error if the security scan fails or finds vulnerabilities.npx pastoralist --remove-unused --dry-run
npx pastoralist --remove-unused{
"pastoralist": {
"depPaths": "workspace",
"checkSecurity": true,
"security": {
"provider": "osv",
"severityThreshold": "medium",
"hasWorkspaceSecurityChecks": true
}
}
}