Skip to content

Commands Overview

kiln provides a set of focused commands for managing encrypted environment variables with role-based access control. Each command is designed to be secure by default and composable with standard Unix tools.

All kiln commands follow a consistent pattern:

Terminal window
kiln [global-options] <command> [command-options] [arguments]
  • --config, -c: Configuration file path (default: kiln.toml)
  • --key, -k: Private key file path (auto-discovered if not specified)
  • --verbose, -v: Enable verbose output for debugging
  • --help, -h: Show help information
  • --version: Show version information

Most commands accept a --file or -f option to specify which environment file to operate on. This corresponds to entries in your kiln.toml configuration.

  • set - Add, update, or bulk import environment variables
  • get - Retrieve specific variables
  • edit - Interactive editing of environment files
  • export - Output variables in various formats
  • apply - Apply variables directly to template files
  • run - Execute commands with injected environment
  • rekey - Add recipients and rotate encryption
  • info - Display file status and verification

All commands use encrypted storage with role-based access control.

kiln commands use semantic exit codes:

  • 0: Success
  • 1: General error (validation, configuration, access denied)
  • 2: Command execution error (for run command)

Error messages are designed to be actionable and include suggestions for resolution.

For detailed examples and workflows, see individual command pages and Team Setup Guide.

Ready to dive deeper? Explore specific commands and workflows for your team’s needs:

Initialize Your Project Set Up Team Access Complete Command Reference