@barekey/cli
v0.7.0
Published
Barekey command line interface
Readme
@barekey/cli
CLI for Barekey login, variable management, pull workflows, and SDK type generation.
Install
npm install -g @barekey/cliQuickstart
barekey auth login
barekey auth whoamiCreate barekey.json:
{
"organization": "acme",
"project": "web",
"environment": "development"
}Create and read a variable:
barekey env new DATABASE_URL "postgres://localhost:5432/app" --type string
barekey env get DATABASE_URLUpdate it:
barekey env set DATABASE_URL "postgres://localhost:5432/app_v2"Pull local files:
barekey env pull --out .env.local
barekey env pull --format json --out barekey.local.jsonGenerate SDK types:
barekey typegen
barekey typegen --watchCommon commands
barekey env list
barekey env get-many --names DATABASE_URL,REDIS_URL
barekey env new FEATURE_ENABLED true --type boolean
barekey env set PUBLIC_TITLE "Barekey Docs" --visibility public
barekey env set CHECKOUT_FLOW control --ab treatment --chance 0.5
barekey env delete FEATURE_ENABLED --yesNotes
env newcreates with an initial value.env setis the upsert command.get-manyuses a comma-separated--namesvalue.- Target resolution comes from flags,
barekey.json, and the stored login org.
Development
bun install
bun run build
bun run typecheck
bun test