Skip to content

CCL Examples

CCL in practice: simple configurations that show the format’s power.

database =
host = localhost
port = 5432
name = myapp_prod
credentials =
username = admin
password = ${DB_PASSWORD}
beta =
mode = sandbox
capacity = 2
feature_flags =
new_ui = true
api_v2 = false
prod =
mode = live
capacity = 8
feature_flags =
new_ui = false
api_v2 = true
servers =
= web1.example.com
= web2.example.com
= api.example.com
backup_servers =
= backup1.example.com
= backup2.example.com
logging =
level = info
outputs =
console =
enabled = true
format = json
file =
enabled = true
path = /var/log/app.log
rotation = daily
/= Application configuration
/= Updated: 2024-01-15
app =
name = MyApp
version = 2.0.0
/= Deprecated: Use feature_flags instead
experimental_mode = false

All examples use core CCL syntax: key-value pairs with indentation.