Skip to main content

resize

change a database's instance type, high availability or storage

Change a database's instance type, its high availability, or grow its storage. The database restarts to apply a new instance type or high availability; storage grows online and can't shrink.

Usage​

csph db resize <name|id> [flags]

Options​

Command Specific​

--environment <string>
environment ID
--high-availability <string>
none or standby
--instance-type <csph db instance-types>
new instance type, by name or id (see csph db instance-types)
--project <string>
project ID

--storage <int> (default 0)

new storage size in GB (grow only)

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 resize orders --instance-type "Standard 2"
csph db resize orders --high-availability standby
csph db resize orders --storage 50

See also​