Authentication
Logging in
Section titled “Logging in”craftybase auth login # interactive prompt (hidden input)echo "$KEY" | craftybase auth login # from stdin (CI)craftybase auth login --token "$KEY" # explicit flagOn success your account name + token are stored in ~/.craftybase/config.toml (mode 0600).
Status & logout
Section titled “Status & logout”craftybase auth status # shows account, masked key, and API URLcraftybase auth logout # removes stored credentialsToken resolution precedence
Section titled “Token resolution precedence”The token is resolved in this order — first match wins:
--tokenflagCRAFTYBASE_API_TOKENenvironment variable- stored profile (
~/.craftybase/config.toml)
A missing token yields a clear error and exit code 3.