Reference
This section is the authoritative reference for APM. If you’re learning APM, start in the consumer ramp or producer ramp instead — the reference assumes you know what you’re looking for.
CLI commands
Section titled “CLI commands”Per-command pages live under reference/cli/. Grouped by lifecycle phase:
| Phase | Commands |
|---|---|
| Project setup | init, auth, install, lock, update, uninstall |
| Inspect and audit | view, deps, outdated, list, find, audit, doctor |
| Compile and integrate | compile, prune, targets, runtime |
| Cache and config | cache, config |
| Run scripts | run |
| Author and distribute | pack, unpack, preview, plugin, publish, export-patch, lifecycle, marketplace, search, self-update |
| Governance | approve, deny, policy, mcp |
| Experimental | experimental |
Deprecations
Section titled “Deprecations”Deprecated surfaces still work. Each row names the replacement, the release that deprecated it, and the removal version its warning announces. “Not scheduled” means no removal version is set. A removal version older than your APM still works: that horizon passed without a removal.
| Deprecated | Use instead | Deprecated since | Removal | How APM tells you |
|---|---|---|---|---|
apm config key auto-integrate | None (it has no effect); remove it | v0.37.0 | not scheduled | Warning |
vscode target alias | copilot | v0.37.0 | not scheduled | Warning |
Singular target: in apm.yml | targets: (the warning prints the exact value) | v0.37.0 | not scheduled | Warning |
compilation.target in apm.yml | None (ignored); delete it | v0.37.0 | not scheduled | Warning |
all in apm.yml targets: | Omit the field | unknown | not scheduled | Warning |
apm compile --target all | apm compile --all | unknown | not scheduled | Warning |
allowExecutables: in apm.yml | executables.allow (migrated by apm approve/apm deny) | v0.22.0 | not scheduled | Warning |
bin_deploy: in apm-policy.yml | executables (deny_all/deny) | v0.22.0 | not scheduled | Warning |
apm pack --target | None (bundles are target-agnostic) | unknown | not scheduled | Warning |
apm unpack | apm install <bundle-path> | unknown | not scheduled | Warning |
apm deps update | apm update | v0.17.0 | not scheduled | Warning |
apm update outside an apm.yml project | apm self-update | v0.13.0 | not scheduled | Warning |
apm update --check | apm update --dry-run or apm self-update --check | unknown | not scheduled | Warning |
Standalone marketplace.yml | marketplace: block in apm.yml (apm marketplace migrate) | v0.11.0 | not scheduled | Warning |
List or string form of marketplace.outputs | Map form (outputs: {claude: {}}) | v0.14.0 | not scheduled | Warning |
--target agents | --target copilot or --target agent-skills | v0.12.0 | v1.0 | Warning |
<VAR> placeholders in MCP server config | ${VAR} | unknown | v1.0 | Warning |
Python API SimpleRegistryClient.get_server_info() | SimpleRegistryClient.get_server() | v0.14.0 | not scheduled | Python DeprecationWarning (hidden by default) |
ARTIFACTORY_BASE_URL | PROXY_REGISTRY_URL | v0.8.12 | not scheduled | Python DeprecationWarning (hidden by default) |
ARTIFACTORY_APM_TOKEN | PROXY_REGISTRY_TOKEN | unknown | not scheduled | Python DeprecationWarning (hidden by default) |
ARTIFACTORY_ONLY | PROXY_REGISTRY_ONLY | unknown | not scheduled | Python DeprecationWarning (hidden by default) |
Deprecated without a warning today:
| Deprecated | Use instead | Kind |
|---|---|---|
apm install --update | apm update (or apm update --yes in CI) | flag |
apm marketplace add --branch | --ref | flag |
User approvals.yml store | executables in the user config.json (migrated on first read) | file |
PolicyBlockError | PolicyViolationError | python-api |
get_lockfile_installed_paths() | LockFile.installed_paths_for_project() | python-api |
HookIntegrator.integrate_package_hooks_{claude,cursor,codex}() | HookIntegrator.integrate_hooks_for_target() | python-api |
CommandIntegrator.sync_integration(), .sync_integration_opencode() | sync_for_target() | python-api |
AgentIntegrator.sync_integration_{cursor,opencode}() | sync_for_target() | python-api |
InstructionIntegrator.sync_integration_{cursor,claude}() | sync_for_target() | python-api |
InstallLogger.download_complete(ref_suffix=) | ref= and sha= | python-api |
render_marketplace_yml_template() | render_marketplace_block() | python-api |
Schemas and specifications
Section titled “Schemas and specifications”| Doc | What it specifies |
|---|---|
| Manifest schema | Every field in apm.yml |
| Lockfile spec | apm.lock.yaml schema, semantics, and integrity contract |
| Policy schema | apm-policy.yml rules, merge semantics, severity |
| Registry HTTP API | Wire contract for APM registry servers: endpoints, auth, errors |
| Targets matrix | Which primitive types each target (Copilot, Claude, …) supports |
| MCP variable compatibility | How each harness reads env references in MCP config, and what APM writes |
| Baseline checks | The CI checks apm audit --ci runs |
| Environment variables | Every env var APM reads, with precedence |
| Primitive types | Skill, prompt, instruction, agent, hook, command |
| Package types | APM packages, plugins, marketplaces |
| Examples | Worked end-to-end examples |
| Experimental | Surface area still subject to change |
| Common errors | Symptoms, causes, and fixes for frequently reported errors |
Conventions used in reference pages
Section titled “Conventions used in reference pages”<placeholder>— you must substitute a real value.[optional]— argument or flag is optional.- All commands assume
apmis onPATH; install instructions are in the Quickstart. - Status symbols in CLI output:
[+]success,[!]warning,[x]error,[i]info,[*]action,[>]running.
Copyright (c) Microsoft Corporation. General documentation: CC-BY-4.0. Software, code examples and OpenAPM: Apache-2.0. See scope and exclusions.