The apkg command-line interface is how you interact with the APKG ecosystem — installing packages, publishing your own, managing credentials, and configuring your environment.
Pages that already have dedicated reference docs are linked below. Additional commands are listed for completeness and are the next priority for CLI documentation coverage.
Run apkg --help to see a summary of all commands, or apkg <command> --help for usage details on any specific command.
| Command | Description |
|---|
init | Create a new apkg.json manifest interactively |
login | Authenticate with the registry |
logout | Remove stored credentials |
whoami | Show the currently authenticated user |
| Command | Description |
|---|
add | Add a package to your dependencies and install it |
remove | Remove a package from your dependencies |
install | Download and install all dependencies |
update | Update packages to their latest compatible versions |
search | Search the registry for packages |
info | Show metadata for a published package |
| Command | Description |
|---|
pack | Create a tarball from the current package |
publish | Pack and upload a package to the registry |
deprecate | Mark a package or version as deprecated |
dist-tag | Manage distribution tags (add, remove, list) |
| Command | Description |
|---|
config | Manage CLI configuration — set, get, list, and delete values |
| Command | Description |
|---|
key | Manage Ed25519 signing keys (generate, list, register, revoke, rotate) |
token | Manage long-lived API tokens (create, list, revoke) |
verify | Verify signatures and integrity of installed packages |
| Command | Description |
|---|
link | Create symlinks for local package development |
unlink | Remove development symlinks |
| Command | Description |
|---|
add-to-path | Add apkg to your shell PATH |
cache | Manage the global package cache (clean, list, verify) |
completions | Generate shell completion scripts for bash, zsh, or fish |