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.
Command Structure
Section titled “Command Structure”All kiln commands follow a consistent pattern:
kiln [global-options] <command> [command-options] [arguments]Global Options
Section titled “Global Options”--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
File Selection
Section titled “File Selection”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.
Command Categories
Section titled “Command Categories”Initialization Commands
Section titled “Initialization Commands”init key- Generate encryption keysinit config- Create configuration files
Variable Management
Section titled “Variable Management”set- Add, update, or bulk import environment variablesget- Retrieve specific variablesedit- Interactive editing of environment files
Output and Integration
Section titled “Output and Integration”export- Output variables in various formatsapply- Apply variables directly to template filesrun- Execute commands with injected environment
Administration
Section titled “Administration”All commands use encrypted storage with role-based access control.
Error Handling
Section titled “Error Handling”kiln commands use semantic exit codes:
0: Success1: General error (validation, configuration, access denied)2: Command execution error (forruncommand)
Error messages are designed to be actionable and include suggestions for resolution.
Examples
Section titled “Examples”For detailed examples and workflows, see individual command pages and Team Setup Guide.
Next Steps
Section titled “Next Steps”Ready to dive deeper? Explore specific commands and workflows for your team’s needs:
Initialize Your Project Set Up Team Access Complete Command Reference