Getting Started
Get up and running with skret in under 5 minutes.
The whole loop is two commands — the same shape as doppler setup && doppler run:
skret setup # pick provider + path, then authenticate (once)skret run -- <command> # run anything with secrets injectedskret setup authenticates once (SSO refreshes silently for the whole
session, or a stored access key) so you never re-run aws login. The
sections below walk through each piece.
1. Install
Section titled “1. Install”# macOSbrew install n24q02m/tap/skret
# Windowsscoop bucket add n24q02m https://github.com/n24q02m/scoop-bucketscoop install skret
# Gogo install github.com/n24q02m/skret/cmd/skret@latest2. Initialize
Section titled “2. Initialize”Navigate to your project root and run:
skret init --provider=aws --path=/myapp/prod --region=us-east-1This creates .skret.yaml and updates .gitignore.
3. Manage Secrets
Section titled “3. Manage Secrets”# Set a secretskret set DATABASE_URL "postgres://user:pass@host/db"
# Get it backskret get DATABASE_URL
# List all secretsskret list
# Run your app with secrets injectedskret run -- npm start4. Multi-Environment
Section titled “4. Multi-Environment”Edit .skret.yaml to add environments:
version: "1"default_env: prod
environments: prod: provider: aws path: /myapp/prod region: us-east-1
dev: provider: local file: ./.secrets.dev.yamlSwitch environments:
skret --env=dev get DATABASE_URLskret --env=prod list5. Import Existing Secrets
Section titled “5. Import Existing Secrets”# From .env fileskret import --from=dotenv --file=.env
# From DopplerDOPPLER_TOKEN=dp.st.xxx skret import --from=doppler --doppler-project=myapp --doppler-config=prd
# From InfisicalINFISICAL_TOKEN=st.xxx skret import --from=infisical --infisical-project-id=... --infisical-env=prod