CLI Reference
CLI Commands
Install the CLI for secret management and build-time injection. Use the SDK for runtime loading with init().
Installation
npm install keydropnpm install -g keydrop-cliWorks with npm, yarn, and pnpm.
login
Authenticate with KeyDrop using your browser. This stores a session token locally.
Usage
keydrop loginExamples
$
keydrop loginpush
Encrypt and upload your .env file. Creates a new project or updates an existing one.
Usage
keydrop push [options]Examples
$
keydrop push$
keydrop push --env .env.production$
keydrop push --name my-appOptions
run
Execute a command with secrets injected as environment variables. No code changes required.
Usage
keydrop run -- <command>Examples
$
keydrop run -- npm start$
keydrop run -- next dev$
keydrop run -- yarn buildOptions
pull
Download and decrypt secrets to a local .env file.
Usage
keydrop pull [options]Examples
$
keydrop pull$
keydrop pull --output .env.localOptions
logout
Sign out and clear your local session.
Usage
keydrop logoutExamples
$
keydrop logout