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
Formatting
For more information about formatting options, see Formatting.
Inherited
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
- csph db public — manage the public endpoint (IP allowlist)
- csph db public show — show the public endpoint and its allowlist
- csph db public disable — turn the public endpoint off
- csph db public allow — add addresses to the allowlist
- csph db public deny — remove addresses from the allowlist