Skip to main content

get

get environments

♻️ Retrieve the details of an environment by its ID.

Usage​

csph environments get [flags]

Aliases​

environments get, environments show, env get, env show, envs get, envs show, environment get, environment show

Options​

Formatting​

For more information about formatting options, see Formatting.

--fields <strings>
output JSON with the specified fields
--jq <string>
filter JSON output with jq expression

-o, --output <string>

output format: [table|plain|csv|json|yaml]
--template <string>
format JSON using a Go template

Available Fields​

active, created_at, custom_domain, default_url_disabled, deletion, deploy_policy, deployment_count, deployments, domain_path, domain_paths, expires_at, id, kind, name, network_access, network_policy, object, preview, project_id, region, source_environment_id, sub_domain, ttl_hours, updated_at

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

Examples​

# start an interactive session to get an environment
> csph environment get

# get an environment by its ID
> csph environment get <environment-id>

See also​