Skip to main content

add

bind a path prefix on a domain to a deployment

Usage​

csph environments domain-path add [flags]

Options​

Command Specific​

--deployment <string>
deployment ID
--domain <string>
custom domain (hostname)
--environment <string>
environment ID
--path <string>
path

Formatting​

For more information about formatting options, see Formatting.

-o, --output <string>

output format: [table|plain|csv|json|yaml]

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​

# route /api on the environment's default domain to a deployment
> csph environments domain-path add --deployment <id> --path /api

# route /api on a specific custom domain instead
> csph environments domain-path add --deployment <id> --path /api --domain api.example.com

See also​