@anvilstack/registry-cli
v0.1.1
Published
Command-line client for Anvil Registry package decisions, lockfile scans, reports, and overrides.
Readme
Anvil Registry CLI
Command-line client for Anvil Registry package decisions, lockfile scans, reports, overrides, and operator checks.
The CLI is a client. It does not run the registry gateway by itself. You need a running Anvil Registry gateway for package decision commands, and an Admin service plus token for protected report, queue, override, audit, and index commands.
Install
npm install --global @anvilstack/registry-clior run without a global install:
npx @anvilstack/registry-cli doctorConfigure
Point the CLI at your gateway:
export ANVIL_REGISTRY_URL=http://localhost:4873For Admin-backed commands:
export ANVIL_ADMIN_URL=http://localhost:3000
export ANVIL_ADMIN_TOKEN=local-dev-tokenANVIL_ADMIN_TOKEN falls back to ADMIN_TOKEN when needed.
Start a local gateway
From the Anvil Registry repository:
docker compose -f infra/docker/docker-compose.yml up -d --build gateway worker adminThen check it:
anvil-registry doctorCommon commands
anvil-registry explain react@latest
anvil-registry scan package-lock.json --queue-analysis
anvil-registry warm package-lock.json
anvil-registry queue status
anvil-registry approve [email protected] --reason "reviewed dependency" --approved-by security-review
anvil-registry reports [email protected]
anvil-registry node-base reports --limit 20Documentation
- CLI setup and usage:
../../../anvil-website/content/docs/registry/cli.md - Gateway quickstart:
../../../anvil-website/content/docs/registry/quickstart.md - Deployment:
../../../anvil-website/content/docs/registry/deploy.md
