Skip to main content
After deployment, the CLI stores configuration in:
~/.config/keyflare/
├── config.yaml      # Default settings
└── credentials      # API key (file permissions 0600)
config.yaml:
api_url: "https://keyflare.<account>.workers.dev"
project: "my-api"          # Default project (optional)
environment: "development"  # Default environment (optional)
credentials:
kfl_user_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6

Environment Variables

Override CLI configuration with environment variables:
VariableDescription
KEYFLARE_API_KEYAPI key (overrides credentials file)
KEYFLARE_API_URLAPI URL (overrides config file)
KEYFLARE_LOCALSet to true to target http://localhost:8787
KEYFLARE_PROJECTDefault project (overrides config file)
KEYFLARE_ENVDefault environment (overrides config file)
CLOUDFLARE_API_TOKENUsed by kfl init (skips auth prompt)
DEBUGSet to keyflare for CLI debug logs