Skip to main content

add

attach a custom domain to a deployment

Attach a custom domain to a deployment.

Use '*.example.com' (quoted, so your shell leaves the star alone) to serve every subdomain of example.com from the service. A wildcard needs DNS records, which are printed after it is added.

Usage​

csph deployments domains add <domain> [flags]

Options​

Command Specific​

--deployment <string>
deployment ID

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​

# attach a custom domain
> csph deployments domains add app.example.com --deployment <id>

# serve every subdomain of example.com
> csph deployments domains add '*.example.com' --deployment <id>

See also​