raff configure walks you through writing a YAML config at ~/.raff/config.yaml (%USERPROFILE%\.raff\config.yaml on Windows). The CLI reads this on every command unless overridden by environment variables or per-command flags.
Authenticating with Raff
To useraff, you need an API key. Generate one in the dashboard at rafftechnologies.com under Team & Projects → API Keys.
Run the configure command to set up a profile:
raff commands read credentials from this file.
configure does not currently validate the key against the API — it just saves to disk. The first real call (e.g. raff project list) will surface an auth error if the key is wrong.Switching between multiple profiles
raff supports multiple profiles in the same config file so you can keep separate keys (e.g. staging vs production):
vm list, vpc list, …) do not take a --profile flag — they always use whichever profile is set as current-profile in ~/.raff/config.yaml. To use a non-active profile for a single command, override with environment variables:
Configuring Default Values
Theraff configuration file stores your API key and default values for command flags. The file is created automatically the first time you run raff configure.
| OS | Config path |
|---|---|
| Linux | ~/.raff/config.yaml |
| macOS | ~/.raff/config.yaml |
| Windows | %USERPROFILE%\.raff\config.yaml |
current-profile selects which profile every command (other than configure) uses.
Authentication precedence
Every command resolves credentials in this exact order:- CLI flag —
--api-key,--api-url,--project-idon the command line - Environment variable —
RAFF_API_KEY,RAFF_API_URL,RAFF_PROJECT_ID - Config file — the profile named in
current-profilein~/.raff/config.yaml
configure thing.
CI/CD without a config file
For CI/CD where there’s no interactive shell, env vars work without configuring anything:Verify your setup
401 Unauthorized, double-check the API key. If it errors with 403 Forbidden, the key is valid but doesn’t have account.projects.view permission — see the role assigned to the key on the API Keys page.
Related
Generate an API key
Get the key you need before configuring.
VM commands
Start using the CLI.
Roles, scopes, and the Owner
Why you may see a 403 even with a valid key.