Documentation Index
Fetch the complete documentation index at: https://docs.capy.sc/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Description
The barecapy command is the main sync loop. It authenticates you (if needed), pulls the latest encrypted secrets from the service, diffs them against your local .env, and writes any changes back. On first run in a project, it interactively initializes the project - picking an org, creating a project, encrypting your existing .env, and writing keep.lock.
See Syncing secrets for the full flow.
Options
| Flag | Description |
|---|---|
--env-path <path> | Use a custom .env file location instead of the project root. |
-v, --verbose | Enable detailed logging. Useful when debugging sync issues. |
-f, --force | Re-encrypt existing variables even if they appear unchanged. |
-d, --dry-run | Preview the sync without applying any changes. |
Examples
First-run behavior
On first run (nokeep.lock in the project), Capy:
- Authenticates you in the browser.
- Prompts for an organization (or creates one, which generates a seed phrase).
- Prompts for a project (or creates one).
- Creates a
developmentbranch. - Encrypts every value in your
.envand uploads the ciphertext. - Rewrites
.envwithcapy:…snippets and gitignores it. - Writes a commented-out copy of your original
.envto.env.pre-capy.old(gitignored). - Installs
post-checkoutandpost-mergegit hooks, which runcapy statusafter branch switches and merges. - Commits only
keep.lockto git (a small versioning manifest with no keys or plaintext).