Environments CLI reference
The environments command lets you manage environments for your projects.
All environments commands require --project-id.
List environments
Section titled “List environments”hb environments list --project-id 12345Required flags:
--project-id— Project ID
Optional flags:
-o, --output— Output format:tableorjson(default:table)
Get environment details
Section titled “Get environment details”hb environments get --project-id 12345 --id 67890Required flags:
--project-id— Project ID--id— Environment ID
Optional flags:
-o, --output— Output format:textorjson(default:text)
Create an environment
Section titled “Create an environment”hb environments create --project-id 12345 --cli-input-json '{ "name": "staging", "notifications": true}'Required flags:
--project-id— Project ID--cli-input-json— JSON payload (inline string orfile://path)
JSON fields:
name— Environment namenotifications— Whether to send notifications for this environment
Optional flags:
-o, --output— Output format:textorjson(default:text)
Update an environment
Section titled “Update an environment”hb environments update --project-id 12345 --id 67890 --cli-input-json '{"notifications": false}'Required flags:
--project-id— Project ID--id— Environment ID--cli-input-json— JSON payload with fields to update
Optional flags:
-o, --output— Output format:textorjson(default:text)
Delete an environment
Section titled “Delete an environment”hb environments delete --project-id 12345 --id 67890Required flags:
--project-id— Project ID--id— Environment ID