diff --git a/plugins/kyberforge/docs/research/docs/microsoft-apm/cli-reference.md b/plugins/kyberforge/docs/research/docs/microsoft-apm/cli-reference.md new file mode 100644 index 0000000..0a24d22 --- /dev/null +++ b/plugins/kyberforge/docs/research/docs/microsoft-apm/cli-reference.md @@ -0,0 +1,99 @@ +--- +topic: cli-reference +source_keys: + - context7-microsoft-apm +--- + +## Install + +```bash +apm install [PACKAGE_REF...] [OPTIONS] +``` + +With no arguments, resolves and installs everything declared in `apm.yml` against `apm.lock.yaml`. Explicit `PACKAGE_REF` arguments (e.g. `acme/internal-tools#^1.0.0`) install and add that dependency. `apm install --update` re-resolves and accepts new upstream content even when it doesn't match the recorded lockfile hash (see troubleshooting). `apm install --target agent-skills` generates a vendor-neutral output directory for IDE-agnostic tool support instead of a harness-specific one. + +## Compile + +```bash +apm compile +``` + +Generates per-target output (Claude, Copilot, etc.) from the vendor-neutral `.apm/` primitive source tree, per the `compilation:` block in `apm.yml`. + +## Pack + +```bash +apm pack --dry-run # resolve and print; do not write +apm pack --offline # cached refs only +apm pack --include-prerelease # allow pre-release tags +apm pack -v # per-entry resolution detail +apm pack --marketplace=claude --json # JSON output for CI pipelines +``` + +Bundles a producer package into a distributable artifact. + +## Publish + +```bash +apm publish --package acme/my-skill --dry-run -v +apm publish --package acme/my-skill +``` + +Publishes a producer package (root containing `apm.yml`, `.apm/`, and optionally a `registries:` block) to a registry. Always dry-run with `-v` first to see resolution detail before publishing for real. + +## Runtime management + +```bash +apm runtime setup copilot # install with APM defaults +apm runtime setup codex --version 0.20.0 # pinned version +apm runtime setup llm --vanilla # skip APM-managed config +apm runtime list # what's installed +apm runtime status # which runtime `apm run` will pick +apm runtime remove gemini -y # uninstall without prompting +``` + +## Run + +```bash +apm run