CLI Reference (kfl)
Complete reference for the Keyflare command-line interface.
Installation
Global Options
Commands
kfl init
Deploy or update Keyflare on your Cloudflare account.
Authentication:
- Reuses existing Wrangler session when available
- Falls back to
CLOUDFLARE_API_TOKENenvironment variable - Prompts for OAuth browser login or API token if neither available
kfl init checks your local configuration:
- If the new API URL differs from your stored URL, you’ll see a warning
- If credentials exist locally and a new bootstrap key would be created, you’ll be prompted to confirm
- The worker is still deployed/updated
- Bootstrap is skipped (someone else can run it)
- Your local config and credentials are preserved
-y to auto-accept all prompts.
Multiple Instances:
You can deploy multiple Keyflare instances by using different names:
kfl login
Log in to an existing Keyflare deployment.
- Keyflare API URL
- API key
~/.config/keyflare/.
kfl projects
Manage projects.
kfl environments (alias: env)
Manage environments.
kfl secrets
Manage secrets.
Legacy aliases are still available but deprecated:
kfl upload, kfl download.
kfl run
Run a command with secrets injected as environment variables. Commands are executed directly (argv-preserving), so quoting works reliably for cases like node -e '...'.
If you need shell features ($VAR expansion, pipes, redirects, &&), run an explicit shell command such as sh -c 'echo $MYSECRET | cut -d@ -f2'.
Examples:
