Skip to content

apkg config

The config command reads and writes persistent CLI settings. Configuration is stored in ~/.apkg/config.json and applies globally to all APKG operations on your machine.

Terminal window
apkg config <subcommand> [arguments]

Set a configuration value.

Terminal window
apkg config set <KEY> <VALUE>

The key must be one of the valid configuration keys listed below. If the key already exists, its value is overwritten.

Retrieve a single configuration value.

Terminal window
apkg config get <KEY>

Prints the value to stdout. Returns an error if the key is not set.

Display all configured values.

Terminal window
apkg config list

Prints every key-value pair currently stored. If no configuration has been set, displays “No configuration set. Using defaults.”

Remove a configuration value.

Terminal window
apkg config delete <KEY>

Returns an error if the key is not set.

KeyDescriptionExample value
registryPackage registry URLhttps://registry.example.com
services.<name>Per-service URL overridehttps://auth.example.com
defaultSetup.<tool>Enable or disable a tool’s default setuptrue or false

Overrides the default registry URL for all commands that talk to the registry (install, publish, search, etc.). This can also be set via the APKG_REGISTRY environment variable.

Overrides the URL for a specific backend service. Valid service names are auth, package, mfa, and search. When a service override is not set, the CLI falls back to the registry URL.

Controls whether a tool’s configuration is set up automatically after installing a package. Valid tools are cursor, claude-code, windsurf, kiro, and codex. Accepts true or false.

Point to a private registry:

Terminal window
apkg config set registry https://registry.internal.example.com

Check the current registry:

Terminal window
apkg config get registry

Enable Claude Code setup by default after installs:

Terminal window
apkg config set defaultSetup.claude-code true

Override the auth service URL for local development:

Terminal window
apkg config set services.auth http://localhost:8787

View all configuration:

Terminal window
apkg config list

Remove a configuration value:

Terminal window
apkg config delete services.auth