Skip to main content

cubby db

Manage Neon Postgres databases for your apps. These commands require a Builder (9.99/mo)orPro(9.99/mo) or Pro (19.99/mo) plan. SQLite apps do not use these commands — SQLite databases are auto-managed with no additional CLI needed.

Subcommands


cubby db export

Export a Neon database as SQL or CSV. Output goes to stdout by default, or to a file with --output.

Usage

Flags

Examples

Tier

Builder (9.99/mo)orPro(9.99/mo) or Pro (19.99/mo) required.
SQLite apps: The cubby db export CLI command is for Neon Postgres apps only. To export a SQLite database, use the Export Data button in the dashboard. SQLite export requires the app to be running.
Stopped apps: If your app was stopped due to a plan downgrade, you can still export your Neon database from the dashboard regardless of your current plan.

cubby db branch

Create or delete a Neon database branch. Branches let you experiment with schema or data changes without affecting your main database.

Usage

Flags

Examples

Output

On success, the command prints the branch name and a connection string you can use to connect directly to the branch.

Tier

Builder (9.99/mo)orPro(9.99/mo) or Pro (19.99/mo) required.

cubby db branches

List all database branches for an app.

Usage

Flags

Examples

Output

Tier

Builder (9.99/mo)orPro(9.99/mo) or Pro (19.99/mo) required.

cubby db snapshot

Create a point-in-time snapshot of your Neon database. Use snapshots as restore points before risky migrations or data changes.

Usage

Flags

Examples

Output

Tier

Builder (9.99/mo)orPro(9.99/mo) or Pro (19.99/mo) required.

cubby db snapshots

List all database snapshots for an app.

Usage

Flags

Examples

Output

Tier

Builder (9.99/mo)orPro(9.99/mo) or Pro (19.99/mo) required.

cubby db restore

Restore a Neon database from a snapshot. This is a non-destructive operation — it creates a new branch at the snapshot point. Your original data is unchanged.

Usage

Flags

Examples

Output

Tier

Builder (9.99/mo)orPro(9.99/mo) or Pro (19.99/mo) required.

Troubleshooting

”403 Forbidden” or “PLAN_LIMIT_REACHED”

Your plan does not include Neon Postgres. Upgrade to Builder (9.99/mo)orPro(9.99/mo) or Pro (19.99/mo) at app.cubby.pro/billing.

”App not found”

Check your app name with:

“No database configured”

This app uses SQLite, not Neon Postgres. The cubby db commands only work with Neon Postgres apps. SQLite databases are auto-managed and do not require CLI commands.

”Not logged in”

Authenticate first: