Quick Start¶
Get up and running with envsecrets in a few minutes.
Prerequisites¶
- Google Cloud Storage bucket
- Service account with Storage Object Admin permissions
- Service account JSON key file
1. Install envsecrets¶
2. Initialize Configuration¶
Run the interactive setup:
This creates ~/.envsecrets/config.yaml with your settings.
3. Set Up Your Project¶
Create a .envsecrets file in your project root listing files to track:
Add these files to your .gitignore:
4. Push Environment Files¶
5. Pull on Another Machine¶
After setting up envsecrets on another machine:
6. Day-to-Day on Multiple Machines¶
When you've been working on more than one machine and aren't sure what state things are in, run:
The output ends with a recommendation — one of:
- In sync — nothing to do
- Run
envsecrets push— you have local edits to publish - Run
envsecrets pull— another machine pushed; catch up - Run
envsecrets pullthenenvsecrets push— both sides changed, but on different files - Reconcile — the same file changed on two machines; resolve with
envsecrets diff <file>, thenenvsecrets pull(interactive), thenenvsecrets push - Run
envsecrets pullfirst (first_pull) — fresh machine, post-reset, or upgraded from an older client; pull establishes the per-machine sync baseline that the recommendations rely on - Run
envsecrets pushto initialize (first_push_init) — bucket has no entry for this repo yet; the first push creates it
To skip the manual step, run:
sync performs the recommended safe action automatically. It refuses (with an actionable message) when a manual reconcile is required.
Next Steps¶
- Configuration - Detailed configuration options
- CLI Reference - Full command documentation