Skip to main content
PARIXDocs

database

Command reference for parix database.

parix database manages Parix databases in the active organization.

parix database --help

Database commands use the stored CLI session and the active organization resolved by Parix auth.

Commands

CommandPurpose
parix database catalogShow database creation catalog options.
parix database create <database>Create a new database.
parix database listList databases in the active organization.
parix database info <database-id>Show database details.
parix database remove <database-id>Queue database deletion.

catalog

parix database catalog [options]

Options:

OptionDescription
-b, --base-url <url>Parix base URL.
--jsonPrint raw JSON.
-h, --helpDisplay command help.

Examples:

parix database catalog
parix database catalog --json
parix database catalog --base-url http://localhost:5173

The catalog includes providers, regions, cluster configurations, storage tiers, and cluster sizes that can be used with create.

create

parix database create [options] <database>

Arguments:

ArgumentDescription
<database>Database name.

Options:

OptionDescription
-b, --base-url <url>Parix base URL.
--provider <slug>Provider slug, such as gcp or aws.
--region <code>Region code.
--cluster-config-id <id>Cluster configuration ID.
--storage-tier-id <id>Storage tier ID.
--cluster-size-id <id>Cluster size ID.
--storage-gb <n>Storage size in GB. Must be a positive integer.
--jsonPrint raw JSON.
-h, --helpDisplay command help.

Examples:

parix database create payments-ledger --provider gcp --region asia-southeast1
parix database create payments-ledger \
  --provider aws \
  --region ap-southeast-1 \
  --cluster-config-id config-single \
  --cluster-size-id size-hx-5

The command calls the database creation API. If billing setup blocks provisioning, the CLI prints the billing message and checkout URL. Otherwise it prints the database ID, profile status, provisioning status, and workflow ID.

list

parix database list [options]

Options:

OptionDescription
-b, --base-url <url>Parix base URL.
--search <text>Filter database names.
--limit <n>Maximum number of rows to return.
--jsonPrint raw JSON.
-h, --helpDisplay command help.

Examples:

parix database list
parix database list --search payments
parix database list --json

info

parix database info [options] <database-id>

Arguments:

ArgumentDescription
<database-id>Database ID.

Options:

OptionDescription
-b, --base-url <url>Parix base URL.
--jsonPrint raw JSON.
-h, --helpDisplay command help.

Examples:

parix database info db_123
parix database info db_123 --json

The default output includes database identity, provider, region, gateway URL, status, version, sizing, storage, metrics, and latest provision job when available.

remove

parix database remove [options] <database-id>

Arguments:

ArgumentDescription
<database-id>Database ID.

Options:

OptionDescription
-b, --base-url <url>Parix base URL.
--jsonPrint raw JSON.
-y, --yesSkip the confirmation prompt.
-h, --helpDisplay command help.

Examples:

parix database remove db_123
parix database remove db_123 --yes --json

remove queues database deletion. Without --yes, the CLI asks for confirmation before sending the delete request.