CLI Reference
Complete reference for all APM CLI commands and options
Global options
| Option | Env variable | Default | Description |
|---|---|---|---|
--registry <url> | APM_REGISTRY | https://apm.orthg.nl | APM registry URL |
--version | Print version | ||
--help | Print help |
Package names
All packages use scoped names in the format @scope/name. The scope is typically the GitHub owner or organization:
@anthropics/code-review
@user/my-skill
@myorg/internal-guidelinesapm install
Install a skill by scoped name from the registry.
apm install @scope/nameWhat it does:
- Fetches package metadata from the registry (
/api/packages/@scope/name) - Creates
.skills/@scope/name/in your project root - Writes the
SKILL.mdfile - Updates
apm-lock.jsonwith the package source, path, ref, and commit SHA
Project root detection: APM walks up from the current directory looking for apm-lock.json, package.json, Cargo.toml, or .git. Falls back to the current directory.
Example:
$ apm install @anthropics/code-review
apm Fetching @anthropics/code-review...
apm Installed @anthropics/code-review to .skills/@anthropics/code-reviewResult:
your-project/
├── .skills/
│ └── @anthropics/
│ └── code-review/
│ └── SKILL.md
└── apm-lock.jsonapm search
Search for skills in the registry.
apm search <query>Searches the registry using full-text search over scopes, names, and descriptions. Results show the scoped name, metadata (stars, license), description, and source repository.
Example:
$ apm search "error handling"
Found 3 skill(s) matching 'error handling':
@user/error-handling (★ 42 · MIT)
Best practices for error handling across languages
user/error-handling-skill
@org/resilient-apis (★ 18 · Apache-2.0)
Building resilient API error responses
org/resilient-apisapm info
Show details about a skill.
apm info @scope/nameFetches and displays package metadata from the registry.
Example:
$ apm info @anthropics/code-review
@anthropics/code-review Systematic code review checklist
scope: @anthropics
repo: anthropics/skills
path: code-review
ref: main
owner: anthropics
stars: 87
Install:
apm install @anthropics/code-reviewapm validate
Validate a local SKILL.md file against the specification.
apm validate <path>Accepts either a path to a SKILL.md file or a directory containing one. Checks:
- YAML frontmatter is present and parseable
namefield exists, is valid (lowercase alphanumeric + hyphens, max 64 chars, no consecutive hyphens)namematches the parent directory namedescriptionfield exists and is within 1024 characters
Exit codes:
| Code | Meaning |
|---|---|
0 | Valid |
1 | Validation errors found |
Example (valid):
$ apm validate ./my-skill
✓ SKILL.md is valid
name: my-skill
description: A description of what this skill doesExample (invalid):
$ apm validate ./bad-skill
✗ SKILL.md has 2 error(s):
· name must be lowercase alphanumeric with hyphens
· description must not be emptyLockfile
APM maintains an apm-lock.json file at your project root. It tracks installed packages by their scoped name:
{
"lockfileVersion": 1,
"packages": {
"@anthropics/code-review": {
"sourceRepo": "anthropics/skills",
"sourcePath": "code-review",
"sourceRef": "main",
"commitSha": "abc123...",
"integrity": null
}
}
}The lockfile ensures reproducible installs. Commit it to version control.
Environment variables
| Variable | Description |
|---|---|
APM_REGISTRY | Override the default registry URL. Same as --registry. |