A stage is an environment inside a project, such as:Documentation Index
Fetch the complete documentation index at: https://docs.barekey.dev/llms.txt
Use this file to discover all available pages before exploring further.
developmentstagingproduction
Why stages matter
If you store:DATABASE_URLindevelopmentDATABASE_URLinproduction
How the CLI targets a stage
The CLI resolves the stage from:--stagebarekey.json
How the SDK targets a stage
With explicit configuration:barekey.json:
Good stage habits
- keep
development,staging, andproductionvalues separate - commit
barekey.jsonso teammates target the same default stage - use
--stageexplicitly in scripts when the target matters - use production tokens and production stages carefully

