nkapp config
Unified command to manage all aspects of your nanokit.yml configuration from the CLI.
Usage
nkapp config <subcommand> [options]Subcommands
Core Modifiers
| Command | Description |
|---|---|
set <key=value> | Set any property path to a specific value. |
del <key> | Remove a property path from the configuration. |
Domain Helpers
| Command | Description |
|---|---|
config env set/del | Manage environment variables in the env block. |
config deploy set/del | Manage deployment settings (targets, methods). |
config infra set/del | Manage infrastructure provider settings. |
Options
| Flag | Description |
|---|---|
-e, --env <env> | Target a specific environment block instead of global root. |
Examples
Global Settings
nkapp config set name="my-new-project-name"
nkapp config set gatewayPort=8080Environment Variables
# Set a global variable
nkapp config env set API_KEY=12345
# Set a variable only for the 'stage' environment
nkapp config env set DB_NAME=staging_db -e stageDeployment Configuration
nkapp config deploy set target="ubuntu@10.0.0.1" -e production
nkapp config deploy set sshKey="~/.ssh/id_rsa"Infrastructure Tweaks
nkapp config infra set region="us-west-2" -e stage[!IMPORTANT] The
configcommand performs validation against the official Nanokit schema before saving. If you attempt to set an invalid property or type, the command will fail and preserve your file.