Skip to main content

enable

turn the public endpoint on

Turn the public endpoint on. At least one allowed address is required: pass --allow (repeatable or comma-separated), or reuse the stored allowlist. A bare address is added as a single host (/32 or /128).

0.0.0.0/0 or ::/0 opens the database to the whole internet and needs --yes-open-to-internet. Setting up certificates can take a few minutes.

Usage​

csph db public enable <name|id> [flags]

Options​

Command Specific​

--allow <stringArray>
allowed IP address or CIDR range (repeatable, or comma-separated)
--environment <string>
environment ID
--project <string>
project ID
--yes-open-to-internet
confirm allowing 0.0.0.0/0 or ::/0

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​

  csph db public enable orders --allow 203.0.113.7
csph db public enable orders --allow 203.0.113.0/24,198.51.100.4

See also​