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

