Artisan Commands
Available Commands
Section titled “Available Commands”| Command | Description |
|---|---|
huckle:list | List all nodes |
huckle:show {path} | Show node details |
huckle:export | Export as environment variables |
huckle:sync | Sync exports to .env file |
huckle:lint | Validate configuration |
huckle:connect {path} {connection} | Execute connection command |
huckle:diff {env1} {env2} | Compare environments |
huckle:expiring | List expiring nodes |
huckle:hcl2json {input} [output] | Convert HCL to JSON |
huckle:json2hcl {input} [output] | Convert JSON to HCL |
Command Details
Section titled “Command Details”huckle:list
Section titled “huckle:list”List all nodes with their paths, environments, and tags:
php artisan huckle:list
# Filter by single environmentphp artisan huckle:list --environment=production
# Filter by multiple environments (OR logic)php artisan huckle:list --environment=local --environment=sandbox --environment=staging
# Filter by tagphp artisan huckle:list --tag=postgreshuckle:show
Section titled “huckle:show”Display detailed information about a specific node:
php artisan huckle:show database.production.main
# Reveal sensitive valuesphp artisan huckle:show database.production.main --revealhuckle:export
Section titled “huckle:export”Export nodes as environment variables:
# Export specific nodephp artisan huckle:export database.production.main
# Export all nodesphp artisan huckle:export --allhuckle:sync
Section titled “huckle:sync”Sync exported values to your .env file:
php artisan huckle:sync
# Sync to specific filephp artisan huckle:sync --file=.env.productionhuckle:lint
Section titled “huckle:lint”Validate your nodes configuration:
php artisan huckle:lint
# With expiry and rotation checksphp artisan huckle:lint --check-expiry --check-rotation --check-permissions
# Show environment variables tablephp artisan huckle:lint --table
# Filter table by partition/environment/provider/countryphp artisan huckle:lint --table --partition=FI --environment=productionphp artisan huckle:lint --table --provider=stripe --country=SEhuckle:connect
Section titled “huckle:connect”Execute a connection command defined in a node:
php artisan huckle:connect database.production.main psqlhuckle:diff
Section titled “huckle:diff”Compare nodes between environments:
php artisan huckle:diff production staginghuckle:expiring
Section titled “huckle:expiring”List nodes that are expiring soon:
# Default: 30 daysphp artisan huckle:expiring
# Custom thresholdphp artisan huckle:expiring --days=7huckle:hcl2json
Section titled “huckle:hcl2json”Convert HCL file to JSON:
# Output to stdoutphp artisan huckle:hcl2json nodes.hcl
# Output to filephp artisan huckle:hcl2json nodes.hcl nodes.jsonhuckle:json2hcl
Section titled “huckle:json2hcl”Convert JSON file to HCL:
# Output to stdoutphp artisan huckle:json2hcl nodes.json
# Output to filephp artisan huckle:json2hcl nodes.json nodes.hcl