Skip to Content
CLI & APICommand reference

stackblaze addons

Platform addons

Usage: stackblaze addons|addon [options] [command]

Platform addons

Options:
  -h, --help                           Print help

Commands:
  list [options]                       List available addon types (PostgreSQL,
                                       Redis, …)
  add [options] [kind]                 Attach an addon to the current app (kind
                                       positionally or via --kind)
  share [options] <instance>           Attach an add-on that already runs in
                                       the environment to another app
                                       (spec.sharedAddons)
  delete [options] [kind]              Detach an addon from the current app
                                       (kind, --kind, or --instance); --destroy
                                       also deletes the add-on and its data
  rename [options] <addon> <new-name>  Rename an add-on (the name people see;
                                       its resource name, data and connection
                                       details stay the same)
  backups|backup [options]             Dumps of one PostgreSQL / MariaDB
                                       database (never creates a schedule);
                                       whole-environment backups: `stackblaze
                                       backups`
  import [options] <source> [addon]    Load a dump (pg_dump plain SQL or -Fc
                                       archive) into a PostgreSQL add-on,
                                       inside the cluster: from a local file,
                                       an http(s) URL or a Storage bucket
                                       add-on
  export [options] [addon]             pg_dump -Fc a PostgreSQL add-on to a
                                       Storage bucket add-on of the
                                       environment, inside the cluster
  expose [options] [addon]             Make an add-on reachable from outside:
                                       databases via the edge (IP allow-list),
                                       S3/ClickHouse/RabbitMQ via HTTPS
  unexpose [options] [addon]           Turn public access off (reachable from
                                       inside the platform only)
  info [options] [addon]               Connection details of an add-on: host,
                                       port, user, public address (credentials
                                       with --reveal)
  help [command]                       Print this message or the help of the
                                       given subcommand(s)

addons list

Usage: stackblaze addons list [options]

List available addon types (PostgreSQL, Redis, …)

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  --attached             List addons attached to the current app (default:
                         false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

The add-on types you can attach to an app (the kind is what addons add --kind takes):

stackblaze addons list -p github-demo-gv35 -e dev -a nginx
Memcached  kind=Memcached
ProxySQL  kind=ProxySQL
Cloudflare Tunnel  kind=Tunnel
PostgreSQL (CloudNativePG)  kind=Cluster
MariaDB  kind=MariaDB
Valkey  kind=Valkey
Kafka (Strimzi)  kind=Kafka
OpenSearch  kind=OpenSearchCluster
FerretDB  kind=FerretDB
MongoDB  kind=MongoDB
MySQL  kind=MySQL
S3 bucket  kind=Tenant
ClickHouse  kind=ClickHouseInstallation
RabbitMQ  kind=RabbitmqCluster
Scheduled tasks  kind=ScheduledTasks
Email  kind=Smtp
Linkerd  kind=Linkerd

With --attached, the add-ons this app already uses, with their instance names:

stackblaze addons list -p github-demo-gv35 -e dev -a nginx --attached
OK github-demo-gv35/dev/nginx-9agm
email  kind=Smtp  phase=running  Canvas-level add-on — no operator resource
scheduled-tasks-31d7  kind=ScheduledTasks  phase=running
memcached-o440  kind=Memcached  phase=running

addons add

Usage: stackblaze addons add [options] [kind]

Attach an addon to the current app (kind positionally or via --kind)

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  --kind <name>          Addon kind/id (alternative to the positional)
  --wait                 Poll until the app and addon are running (default:
                         false)
  --timeout <seconds>    Max --wait time (a new database cluster can take
                         several minutes) (default: 600)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

Give the whiteboard app a PostgreSQL database and wait until both are running. The app gets DATABASE_URL, PGHOST and the other connection variables:

stackblaze addons add postgres -p github-demo-cw8z -e dev -a whiteboard --wait
OK Added PostgreSQL (CloudNativePG) (whiteboard-8stj-postgresql) to github-demo-cw8z/dev/whiteboard-8stj
Waiting for github-demo-cw8z/dev/whiteboard-8stj to be ready (up to 10m00s)…
  github-demo-cw8z/dev/whiteboard-8stj: deploying — Addon whiteboard-8stj-postgresql-6bt2: Setting up primary; addon whiteboard-8stj-postgresql-6bt2 deploying; rolling out (Updated env vars (DATABASE_URL, PGDATABASE, PGHOST, +5), shared add-ons): waiting for the new pod (1s elapsed)
…
  github-demo-cw8z/dev/whiteboard-8stj: deploying — Addon whiteboard-8stj-postgresql-6bt2: Cluster Is Not Ready; addon whiteboard-8stj-postgresql-6bt2 deploying (1m02s elapsed)
OK github-demo-cw8z/dev/whiteboard-8stj is ready
url: https://whiteboard-8stj.cloud-dev-central-1.stackblaze.app

addons share

Usage: stackblaze addons share [options] <instance>

Attach an add-on that already runs in the environment to another app
(spec.sharedAddons)

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  --with <app>           App to attach it to (default: -a / the linked app)
  --wait                 Poll until the app is running again (default: false)
  --timeout <seconds>    Max --wait time (default: 600)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

Connect the whiteboard app to a second database that already runs in the environment (here, one restored from a dump). Its variables get the database's name as a prefix, so they don't clash with the app's own DATABASE_URL:

stackblaze addons share whiteboard-8stj-postgresql-restored-76yo -p github-demo-cw8z -e dev --with whiteboard --wait
OK Shared whiteboard-8stj-postgresql-restored-76yo with github-demo-cw8z/dev/whiteboard
Waiting for github-demo-cw8z/dev/whiteboard-8stj to be ready (up to 10m00s)…
  github-demo-cw8z/dev/whiteboard-8stj: deploying — Rolling out new version; rolling out (Updated env vars (NOTES_COPY_DATABASE_URL, NOTES_COPY_PGDATABASE, NOTES_COPY_PGHOST, +5), shared add-ons): waiting for the new pod (2s elapsed)
…
  github-demo-cw8z/dev/whiteboard-8stj: deploying — Rolling out new version (1m38s elapsed)
OK github-demo-cw8z/dev/whiteboard-8stj is ready
url: https://whiteboard-8stj.cloud-dev-central-1.stackblaze.app

addons delete

Usage: stackblaze addons delete [options] [kind]

Detach an addon from the current app (kind, --kind, or --instance); --destroy
also deletes the add-on and its data

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  --kind <name>          Addon kind/id (alternative to the positional)
  --instance <name>      Addon instance name when multiple match
  --destroy              Also delete the shared add-on instance and ALL its
                         data (refused while another app uses it); with an
                         instance name, deletes an add-on no app uses any more
                         (no --app needed) (default: false)
  -y, --yes              Skip confirmation prompt (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

Detach a database from the whiteboard app and delete it with its data. --destroy asks you to type the add-on's name:

stackblaze addons delete --instance whiteboard-8stj-postgresql-restored-76yo --destroy -p github-demo-cw8z -e dev -a whiteboard
!  This detaches whiteboard-8stj-postgresql-restored-76yo from github-demo-cw8z/dev/whiteboard-8stj and then DELETES the shared add-on and ALL ITS DATA (refused while another app still uses it). This cannot be undone.
Type the add-on name (whiteboard-8stj-postgresql-restored-76yo) to confirm: 
OK Detached addon whiteboard-8stj-postgresql-restored-76yo from github-demo-cw8z/dev/whiteboard-8stj
OK Deleted add-on whiteboard-8stj-postgresql-restored-76yo and its data from github-demo-cw8z/dev

A database no app uses any more needs no -a. In a script, --yes skips the prompt:

stackblaze addons delete --instance whiteboard-8stj-postgresql-restored-fob8 --destroy -p github-demo-cw8z -e dev --yes
!  This DELETES the shared add-on whiteboard-8stj-postgresql-restored-fob8 (PostgreSQL) in github-demo-cw8z/dev and ALL ITS DATA (refused while an app still uses it). This cannot be undone.
OK Deleted add-on whiteboard-8stj-postgresql-restored-fob8 and its data from github-demo-cw8z/dev

addons rename

Usage: stackblaze addons rename [options] <addon> <new-name>

Rename an add-on (the name people see; its resource name, data and connection
details stay the same)

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

Give a restored database a name people recognise. The instance name, data and connection details stay the same:

stackblaze addons rename whiteboard-8stj-postgresql-restored-76yo notes-copy -p github-demo-cw8z -e dev
OK Renamed add-on whiteboard-8stj-postgresql-restored-76yo → notes-copy in github-demo-cw8z/dev
Only the name people see changed; its data and connection details are untouched.

addons backups

Usage: stackblaze addons backups|backup [options] [command]

Dumps of one PostgreSQL / MariaDB database (never creates a schedule);
whole-environment backups: `stackblaze backups`

Options:
  -h, --help                 Print help

Commands:
  list [options] [addon]     List dumps and running dump/restore jobs of a
                             database
  status [options] [addon]   Show whether the environment's scheduled backups
                             cover a database
  create [options] [addon]   Dump a database now (no schedule needed)
  restore [options] [addon]  Restore a dump as a NEW database (`<db>-restored`,
                             billed like any database); the existing database
                             is never touched
  help [command]             Print this message or the help of the given
                             subcommand(s)

<addon> is the add-on's instance name (or its type, e.g. postgres, when the
app has one of that type); default the app's only database add-on.

PostgreSQL and MariaDB databases are backed up as dumps: `status` shows
whether the environment's scheduled backups cover it, `create` takes a
dump now (no schedule needed), and `restore` creates a NEW database from a
dump (--backup <name>, default the newest). The existing database is never
touched: connect your app to the new one when you are ready, and delete the
old one yourself. Both are billed until then.

The new database is named `<database>-restored` and made from the dump
itself, also when the source database is gone. (Older servers can only
restore a dump that a recovery point holds; `list` shows which dumps have
one.) Valkey has no dumps. These commands never turn on scheduled backups.

Examples:
  $ stackblaze addons backups status web-postgresql
  $ stackblaze addons backups create --wait
  $ stackblaze addons backups restore web-postgresql --backup <name> --wait

addons backups list

Usage: stackblaze addons backups list [options] [addon]

List dumps and running dump/restore jobs of a database

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

The dumps of the app's database, newest first, and the jobs that made them:

stackblaze addons backups list -p github-demo-cw8z -e dev -a whiteboard
OK whiteboard-8stj-postgresql-6bt2 (PostgreSQL) dumps
  NAME                                                       SIZE       TIME              RECOVERY POINT
  dump-whiteboard-8stj-postgresql-6bt2-1795617127898-435d2c  3.2 KB     2026-11-25T14:32:10.236Z—
  dump-whiteboard-8stj-postgresql-6bt2-1795617069871-8f0c9b  1.3 KB     2026-11-25T14:31:11.695Z—
Restore a dump as a NEW database (`<db>-restored`): `stackblaze addons backups restore <db> --backup <name>`.

Jobs:
  NAME                                                       TYPE     PHASE      STARTED                   FINISHED
  dump-whiteboard-8stj-postgresql-6bt2-1795617127898-435d2c  dump     Completed  2026-11-25T14:32:07.000Z  2026-11-25T14:32:13.000Z
  dump-whiteboard-8stj-postgresql-6bt2-1795617069871-8f0c9b  dump     Completed  2026-11-25T14:31:09.000Z  2026-11-25T14:31:14.000Z

addons backups status

Usage: stackblaze addons backups status [options] [addon]

Show whether the environment's scheduled backups cover a database

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

Check whether the environment's scheduled backups cover the app's database:

stackblaze addons backups status -p github-demo-cw8z -e dev -a whiteboard
OK whiteboard-8stj-postgresql-6bt2 (PostgreSQL) scheduled backups: off
  Turn scheduled backups on in the dashboard (environment → Backups). The CLI never creates a schedule.
  last dump:  -
  dumps kept: 0
  `stackblaze backups create --only whiteboard-8stj-postgresql-6bt2` takes a recovery point of it now (no schedule needed).

addons backups create

Usage: stackblaze addons backups create [options] [addon]

Dump a database now (no schedule needed)

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  --wait                 Wait until the backup completes (exit 1 if it fails)
                         (default: false)
  --timeout <seconds>    Max --wait time (default: 1800)
  --ci                   Output NDJSON events (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

Dump the app's database now, without a schedule, and wait for it:

stackblaze addons backups create -p github-demo-cw8z -e dev -a whiteboard --wait
Dump dump-whiteboard-8stj-postgresql-6bt2-1795617127898-435d2c started — waiting for it to finish…
dump dump-whiteboard-8stj-postgresql-6bt2-1795617127898-435d2c → Running
dump dump-whiteboard-8stj-postgresql-6bt2-1795617127898-435d2c → Completed
OK Backup dump-whiteboard-8stj-postgresql-6bt2-1795617127898-435d2c completed

addons backups restore

Usage: stackblaze addons backups restore [options] [addon]

Restore a dump as a NEW database (`<db>-restored`, billed like any database);
the existing database is never touched

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  --backup <name>        Dump to restore (from `backups list`; default the
                         newest)
  --to <instance>        Removed: a restore never writes into an existing
                         database (kept so old scripts get a clear error)
  --time <iso>           Not supported (dumps have no point-in-time); kept so
                         old scripts get a clear error
  -y, --yes              Accepted for compatibility (a restore needs no
                         confirmation: nothing running changes) (default:
                         false)
  --wait                 Wait until the new database is ready (exit 1 if the
                         restore fails) (default: false)
  --timeout <seconds>    Max --wait time (default: 1800)
  --ci                   Output NDJSON events (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

Restore the newest dump as a new database next to the running one. The app keeps using its database until you connect it to the new one (addons share):

stackblaze addons backups restore whiteboard-8stj-postgresql-6bt2 -p github-demo-cw8z -e dev -a whiteboard
OK New PostgreSQL database whiteboard-8stj-postgresql-restored-2 (whiteboard-8stj-postgresql-restored-76yo) is being restored from dump-whiteboard-8stj-postgresql-6bt2-1795617127898-435d2c of whiteboard-8stj-postgresql-6bt2 (job restore-whiteboard-8stj-postgresql-restore-1795617222737-bdd6b9)
Follow it with `stackblaze backups status -p github-demo-cw8z -e dev` (or pass --wait).

addons import

Usage: stackblaze addons import [options] <source> [addon]

Load a dump (pg_dump plain SQL or -Fc archive) into a PostgreSQL add-on, inside
the cluster: from a local file, an http(s) URL or a Storage bucket add-on

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  --addon <name>         Database add-on (instance or name); same as the
                         [addon] argument
  --instance <name>      Addon instance when multiple match
  --jobs <n>             Parallel pg_restore workers for a -Fc archive (1-8,
                         default 2; a -Ft tar archive always loads with 1)
  --wait                 Follow the import to its end and print the result
                         (default: false)
  --timeout <seconds>    Max --wait time; the import carries on after it (0 =
                         no limit) (default: "21600")
  --local                Run psql / pg_restore / mysql on this machine through
                         a private tunnel instead (also MariaDB, -Fd
                         directories) (default: false)
  --clean                With --local, PostgreSQL archives: drop the objects
                         the dump recreates first (default: false)
  --stop-on-error        With --local: stop at the first error instead of
                         carrying on (default: false)
  -y, --yes              Skip confirmation prompt (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

<source> is one of:
  ./dump.sql | ./db.dump        a local file: uploaded once (up to 5 GB), then loaded in the cluster
  https://…                     a URL the cluster downloads (a presigned S3 URL works)
  s3://<bucket>/<key>           an object of a Storage bucket add-on of the environment
                                (<bucket> is the add-on's name; no other S3 buckets)

The dump is checked before anything is written: an archive (pg_dump -Fc,
also gzipped) must list cleanly, plain SQL must contain its
"-- PostgreSQL database dump complete" line. The database's disk must have
about 3x the dump's size free, or the import is refused ("Increase its
storage first"). Archives load with pg_restore -j N --no-owner
--no-privileges, plain SQL with psql ON_ERROR_STOP; both stop at the first
error. The dump goes INTO the add-on's existing database: use an empty one.
Use the same or an older PostgreSQL version's pg_dump than the add-on runs.
A plain SQL dump is run as it is: make it with `pg_dump --no-owner --no-acl`.

--local is the previous behaviour: the client runs on this machine against
the same private tunnel as `stackblaze connect --local` (MariaDB / MySQL
dumps and pg_dump -Fd directories need it).

Examples:
  $ stackblaze addons import backup.dump --addon postgres -p shop --wait
  $ stackblaze addons import "https://example.com/dump.sql.gz?sig=…" postgres -p shop --wait
  $ stackblaze addons import s3://files/dumps/db.dump --addon postgres -p shop --wait
  $ stackblaze addons import dump.sql --local -a web

Importing from an s3:// source needs a Storage bucket add-on, which isn't available yet.

Example

Load a plain SQL dump (made with pg_dump --no-owner --no-acl) from this machine into an empty PostgreSQL add-on. The CLI uploads the file, the cluster loads it, and --wait prints the result:

stackblaze addons import notes.sql --addon whiteboard-8stj-postgresql-6bt2 -p github-demo-cw8z -e dev --wait
!  This loads notes.sql into PostgreSQL add-on "whiteboard-8stj-postgresql-6bt2" of github-demo-cw8z/dev on https://api-dev.stackblaze.cloud, inside the cluster. It writes into the existing database: use an empty one.
Type "yes" to continue: 
Uploading notes.sql (plain SQL, 2.0 KB)…
Uploading: 100% (2.0 KB/2.0 KB)
Import import-whiteboard-8stj-postgresql-6bt2-1795617111618-6e1dbb started in the cluster (uploaded file).
  pending … 0s
  restore: loading it into the database … 6s
OK Imported 1 table, 3 rows (2.0 KB, plain SQL) — "whiteboard-8stj-postgresql-6bt2" (import-whiteboard-8stj-postgresql-6bt2-1795617111618-6e1dbb).

addons expose

Usage: stackblaze addons expose [options] [addon]

Make an add-on reachable from outside: databases via the edge (IP allow-list),
S3/ClickHouse/RabbitMQ via HTTPS

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  --allow <ip/cidr>      Address allowed to connect (repeatable, or
                         comma-separated)
  --allow-all            Allow any address (only the database password protects
                         it) (default: false)
  -y, --yes              Skip the --allow-all confirmation (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Re-run with a different --allow list to change who may connect. The server
decides which engines can be exposed and says why when it cannot (exit 3).
Credentials: `stackblaze addons info <addon> --reveal`.

Example

Let one address connect to the app's PostgreSQL from outside the platform:

stackblaze addons expose whiteboard-8stj-postgresql-6bt2 -p github-demo-cw8z -e dev -a whiteboard --allow 203.0.113.10
OK whiteboard-8stj-postgresql-6bt2 is public at db.edge.stackblaze.cloud:15000
  allowed: 203.0.113.10
  credentials: `stackblaze addons info whiteboard-8stj-postgresql-6bt2 --reveal`

addons unexpose

Usage: stackblaze addons unexpose [options] [addon]

Turn public access off (reachable from inside the platform only)

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

Turn public access off again. The database stays reachable from your apps:

stackblaze addons unexpose whiteboard-8stj-postgresql-6bt2 -p github-demo-cw8z -e dev -a whiteboard
OK whiteboard-8stj-postgresql-6bt2 is no longer public (reachable from inside the platform only)

addons info

Usage: stackblaze addons info [options] [addon]

Connection details of an add-on: host, port, user, public address (credentials
with --reveal)

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  --reveal               Show passwords and connection strings (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

How to connect to the app's PostgreSQL. Passwords and connection strings stay hidden until you pass --reveal:

stackblaze addons info whiteboard-8stj-postgresql-6bt2 -p github-demo-cw8z -e dev -a whiteboard
OK whiteboard-8stj-postgresql-6bt2 (PostgreSQL)
  engine:      postgres
  host:        whiteboard-8stj-postgresql-6bt2-rw.github-demo-cw8z-dev.svc.cluster.local
  port:        5432
  database:    app
  user:        postgres
  password:    ********
  uri:         ********
  public:      db.edge.stackblaze.cloud:15000
  allowed:     203.0.113.10
  Credentials hidden; pass --reveal to show them.

The JSON also has the JDBC URL and the public access settings:

stackblaze addons info whiteboard-8stj-postgresql-6bt2 -p github-demo-cw8z -e dev -a whiteboard --json
{
  "addon": "whiteboard-8stj-postgresql-6bt2",
  "kind": "Cluster",
  "engine": "postgres",
  "host": "whiteboard-8stj-postgresql-6bt2-rw.github-demo-cw8z-dev.svc.cluster.local",
  "port": 5432,
  "username": "postgres",
  "password": "********",
  "database": "app",
  "system": "PostgreSQL",
  "server": "whiteboard-8stj-postgresql-6bt2-rw",
  "uri": "********",
  "jdbcUrl": "jdbc:postgresql://whiteboard-8stj-postgresql-6bt2-rw.github-demo-cw8z-dev.svc.cluster.local:5432/app",
  "envSnippet": "********",
  …
  "publicExposed": true,
  "publicExposable": true,
  "publicAddress": "db.edge.stackblaze.cloud:15000",
  "publicAllowList": [
    "203.0.113.10"
  ],
  "publicAllowAll": false,
  "publicTls": false
}

On this page