Skip to content

Usage Guide

Adhika P. edited this page Jan 20, 2025 · 1 revision

Usage Guide

Adding Configuration Entries

Basic Configuration

# Add a simple configuration
configfern add --key "AppSettings:ApplicationName" --value "MyApp" --env "dev"

Encrypted Configuration

# Add an encrypted connection string
configfern add --key "ConnectionStrings:DefaultConnection" --value "Server=localhost;Database=mydb" --env "dev" --encrypted

Nested Configuration

# Add a nested configuration
configfern add --key "AppSettings:Features:EnableCache" --value "true" --env "prod"

Managing Configurations

List Configurations

View all configurations for an environment:

configfern list --env dev

Compare Environments

Compare configurations between different environments:

configfern compare --env1 dev --env2 prod

Validate Configurations

Ensure configuration integrity:

configfern validate --env dev

Deployment Operations

Basic Decryption

configfern decrypt --env prod

Custom Output Path

configfern decrypt --env prod --output "./deploy/appsettings.json"

Force Decryption (CI/CD)

configfern decrypt --env prod --force

Back to Home

Clone this wiki locally