init
Initialize a cred project.
Usage
Initialize a new cred project in the current directory:
cred init
This creates:
.cred/
├── project.toml # Project configuration
└── vault.enc # Encrypted secrets vault
Run this once per project, typically at the repository root.
What Happens
- Creates the
.cred/directory - Generates a random 32-byte encryption key
- Stores the key in your OS credential store (Keychain, GNOME Keyring, etc.)
- Creates an empty encrypted vault
- Adds
.cred/to.gitignore
Important Notes
- cred is single-machine only — the vault and encryption key stay on your dev machine
- Use
cred pushto deploy secrets to platforms like GitHub Actions - Your CI/CD reads secrets from the target platform directly, not from cred
See Security Model for more details.