Quick start
Install
Section titled “Install”Install with Go:
go install github.com/kado-so/cin/cmd/cin@latestYou can also download a release from GitHub Releases.
Create config
Section titled “Create config”Create the shared encrypted config file at the repo root:
cin init vaishnavThis creates configs.secret.yaml.
Add environment config
Section titled “Add environment config”cin set -e dev options.postgres.host postgrescin set -e dev options.postgres.port 5432cin set -e dev extends baseRead a value without leaking plaintext:
cin get -e dev options.postgres.hostPrint plaintext only when needed:
cin get -e dev options.postgres.host --showInject app values
Section titled “Inject app values”App values are injected as environment variables.
cin set -e dev -a api DATABASE_URL 'postgres://{{ .options.postgres.host }}:{{ .options.postgres.port }}/api'cin set -e dev -a api REDIS_URL redis://localhost:6379cin run -e dev -a api -- pnpm devLocal overrides
Section titled “Local overrides”If configs.local.secret.yaml exists, cin loads it at highest precedence.
cin run --local-file path/to/local.secret.yaml -e dev -a api -- pnpm devcin run --no-local -e dev -a api -- pnpm dev