Skip to main content
Resources are provisioned in your PlanetScale account with normal access and dashboards. Your billing page in the PlanetScale dashboard will indicate that you are connected to the Stripe app and payments are made through Stripe.
Stripe Projects is currently in developer preview. You can request access to try it out here.

Before you begin

Before you can use PlanetScale with the Stripe CLI, you’ll need:
  • Access to the developer preview
  • A Stripe account
  • A PlanetScale account (or Stripe Projects can create one for you)
  • The Stripe CLI installed and up to date
  • The Projects plugin installed:

Quickstart

Initialize Stripe Projects in your app directory, add a PlanetScale database, and sync credentials to your local environment:
After syncing, your .env file will be updated with your PlanetScale database connection string.

Add a database

When you run stripe projects add, you can sign in to your existing PlanetScale account or let Stripe Projects create a new one. You’ll be prompted to configure:
  • Database name
  • Cluster size
  • Region
  • Number of replicas
Once confirmed, your database is provisioned and credentials are returned in an agent-readable format.

Manage credentials

List your project’s environment variables (values are not shown):
Sync credentials to your local .env file:
Rotate credentials for your PlanetScale database:

Check project status

Review your project’s linked providers, provisioned services, and health:

Open your PlanetScale dashboard

Remove a database

This is a destructive operation. Running this command will delete your PlanetScale database.

Non-interactive and agent use

All commands support flags for use in CI/CD pipelines, scripts, and AI agents: Example — add a database with no prompts:

Further reading

For full documentation on Stripe Projects, including billing, LLM context generation, the complete command reference, and regional availability, see the Stripe Projects documentation. You can also view PlanetScale in the Stripe Marketplace to get started.

Need help?

Get help from the PlanetScale Support team, or join our Discord community to see how others are using PlanetScale.