nkapp auth
Manage cloud provider authentication. Credentials are stored locally in .nanokit/auth.json.
nkapp auth <subcommand> [options]Subcommands
auth aws
Authenticate with Amazon Web Services.
nkapp auth aws --key <access_key> --secret <secret_key> [--region <region>]| Flag | Type | Default | Description |
|---|---|---|---|
--key <key> | string | — | AWS Access Key ID |
--secret <secret> | string | — | AWS Secret Access Key |
--region <region> | string | us-east-1 | Default AWS Region |
auth do (alias: digitalocean)
Authenticate with DigitalOcean.
nkapp auth do --token <token>| Flag | Type | Default | Description |
|---|---|---|---|
--token <token> | string | — | DigitalOcean Personal Access Token |
auth status
Show current authentication status for all configured providers.
nkapp auth statusAuthentication Status:
AWS: Authenticated (Updated: 2026-04-15T12:00:00Z)
DIGITALOCEAN: Authenticated (Updated: 2026-04-14T09:30:00Z)Credential Storage
Credentials are stored in .nanokit/auth.json within your project directory. This file should be in your .gitignore.
[!IMPORTANT] These credentials are used exclusively for infrastructure provisioning operations (e.g., EC2 instance creation, Droplet management). They are not used for service-level secrets — use
nkapp secretsfor that.