usecloak-cli
v0.3.3
Published
Command-line client for Cloak — pull encrypted secrets into your local process, no .env file required.
Readme
usecloak-cli
Command-line client for Cloak — pull encrypted secrets into your local process at runtime. Nothing written to disk.
Install
npm install -g usecloak-cliThe command is cloak regardless of the package name.
Usage
cloak login <token>
cloak run -- npm run devGet a token from your Cloak dashboard → Tokens → Create token.
Works with any stack
cloak run -- just spawns whatever command follows --, with secrets
injected into its environment. Cloak has no idea what the command does —
replace it with however you normally start your app:
cloak run -- npm run dev # Node / Next.js / Express
cloak run -- npm start # React Native / Expo
cloak run -- yarn dev
cloak run -- python manage.py runserver # Django
cloak run -- flask run # Flask
cloak run -- rails server # Ruby on Rails
cloak run -- go run main.go # Go
cloak run -- ./your-binary # anything elseCommands
cloak login <token> [--global]
cloak logout [--global]
cloak whoami
cloak secrets list
cloak secrets pull [--format env|json]
cloak secrets set KEY=value
cloak secrets delete KEY
cloak secrets import [--from .env]
cloak run -- <command> [args...]
cloak run --watch -- <command> [args...]Full reference: https://usecloak.top/docs/cli
