Manage control-plane resources with Volcengine account credentials. Session and event requests use the endpoint and Environment Key. Use —workspace-id to select a workspace and —config to select project configuration.
Image builds and Devboxes consume cloud resources. Save any data you need before deleting an instance.
A Cloud-ECS environment requires an available regional Linux Cloud-Init amd64 base image and network configuration. Ordinary creation installs packages at first boot. An image build requires a nonempty package list and bakes the dependencies into the image. Wait with environments build-status. Existing Devboxes retain their environment snapshot when you update an environment.
agentkit harness-infra environments list --jsonagentkit harness-infra devbox create --name build-devbox --environment-id "$ENVIRONMENT_ID" --waitagentkit harness-infra devbox list --environment-id "$ENVIRONMENT_ID" --all
harness-infra environments create
Create an environment from shared configuration or a specification file.
Option
Description
Default
--file <path>
JSON or YAML request (camelCase top-level, PascalCase Config)
—
--name <name>
environment name
—
--description <text>
environment description
—
--type <type>
Cloud, Cloud-ECS, or SelfHosted
—
--image-id <id>
Cloud-ECS base image ID
—
--image-url <url>
Cloud or SelfHosted container image
—
--cpu-milli <number>
CPU in millicores
—
--memory-mb <number>
memory in MiB
—
--disk-size <size>
disk declaration, e.g. 80Gi
—
--env <KEY=VALUE>
environment variable. repeat for multiple variables
—
--compose-file <path>
Docker Compose YAML. encode original bytes as Base64
—
--client-token <token>
idempotency token
—
--wait
wait for completion
Off
--timeout <seconds>
wait timeout
900
-r, --region <region>
cloud API and signing region
—
--json
output JSON
Off
--workspace-id <id>
Workspace selector (defaults to server DEFAULT workspace)