superkeycli
v0.2.0
Published
Push and pull encrypted .env values to and from SuperKey.
Maintainers
Readme
superkeycli
Push and pull encrypted .env values to and from SuperKey, with zero-knowledge
AES-256-GCM encryption performed locally on your machine.
Usage
No install required — just use npx:
npx superkeycli <command>Or install globally:
npm install -g superkeycliQuick start
# 1. Issue a Personal Access Token in the dashboard at /dashboard/cli
npx superkeycli login --token sk_xxx
# 2. Link the current directory to a remote project + env
npx superkeycli link
# 3. Push your local .env (values are encrypted client-side)
npx superkeycli push
# 4. On another machine, pull and write a fresh .env
npx superkeycli pull > .envCommands
npx superkeycli login --token <pat>— authenticate this machinenpx superkeycli logout— revoke the active token and remove cached credentialsnpx superkeycli whoami— show the current user and workspacesnpx superkeycli link [--workspace <slug>] [--project <slug>] [--env <env>]— write.superkey.jsonnpx superkeycli push [--env <env>] [--file <path>]— encrypt and uploadnpx superkeycli pull [--env <env>] [--out <path>]— fetch and decrypt
Environment variables
SUPERKEY_API_URL— defaults tohttps://superkey.dev(orhttp://localhost:3000during dev)SUPERKEY_PASSPHRASE— non-interactive passphrase for CISUPERKEY_TOKEN— non-interactive PAT for CI
Security model
See doc/crypto.md in the SuperKey repository.
