Configuration
Config file
Section titled “Config file”Credentials live in ~/.craftybase/config.toml, keyed by profile (profiles.default), written atomically with 0600 permissions.
API URL
Section titled “API URL”The API base URL is resolved as: --api-url flag → CRAFTYBASE_API_URL env → stored profile → default (https://api.craftybase.com).
Global flags
Section titled “Global flags”| Flag | Purpose |
|---|---|
--json | Raw API envelope (pretty-printed) |
--ndjson | Auto-paginated NDJSON stream |
--no-color | Disable ANSI color |
--token <token> | Override stored credentials |
--api-url <url> | Override the API base URL |
--verbose | Show HTTP request/response detail (token redacted) |