temporal-server render-config command renders the server configuration template with environment variable substitution and outputs the final configuration.
Synopsis
Description
Renders the server configuration by:- Loading the configuration from files or embedded defaults
- Applying environment variable substitution
- Rendering the final configuration as YAML
- Outputting to stdout
- Debugging configuration issues
- Verifying environment variable substitution
- Understanding the final merged configuration
- Generating configuration for documentation
Options
—config, -c
Config directory path relative to root (deprecated).- Type: String
- Default:
config - Environment variable:
TEMPORAL_CONFIG_DIR
—env, -e
Runtime environment for configuration selection (deprecated).- Type: String
- Default:
development - Environment variable:
TEMPORAL_ENVIRONMENT
—zone, —az
Availability zone for configuration (deprecated).- Type: String
- Default: None
- Environment variable:
TEMPORAL_AVAILABILITY_ZONE
—root, -r
Root directory of execution environment (deprecated).- Type: String
- Default:
. - Environment variable:
TEMPORAL_ROOT
--config-file with the start command.
Output
The command outputs the rendered configuration in YAML format to stdout.Examples
Render Default Configuration
Render with Environment Variables
Save Rendered Config to File
Verify Configuration Changes
Extract Specific Configuration
Usingyq to extract specific sections:
Use Cases
Debugging Configuration
Verify that environment variables are substituted correctly:Configuration Documentation
Generate documentation showing actual deployed configuration:Validate Before Deploy
Check configuration before starting the server:Template Verification
Verify template syntax without starting the server:Configuration Merging
When using the legacy config directory approach, configurations are merged in this order:base.yaml- Base configuration{environment}.yaml- Environment-specific config{environment}_{zone}.yaml- Zone-specific overrides- Environment variables
Sensitive Data Handling
Warning: The rendered configuration may contain sensitive data like passwords and API keys. Take precautions:Troubleshooting
Template Syntax Error
Environment Variable Not Substituted
Missing Configuration File
Invalid YAML Output
CI/CD Integration
Verify Configuration in CI
Best Practices
- Never Commit Rendered Config: Add
*-rendered.yamlto.gitignore - Redact Secrets: Remove sensitive data before sharing rendered config
- Use in Testing: Render config in tests to verify template correctness
- Document Differences: Document why different environments have different configs
- Version Templates: Keep configuration templates in version control