September 28, 2026

PlanetScale CLI
Manage PlanetScale database branches, deploy requests, and more from the command line.
macOS 下通过 Homebrew 安装:
```bash
brew install planetscale/tap/pscale
```在 GitHub Actions 中列出部署请求:
```yaml
- name: Setup pscale
uses: planetscale/setup-pscale-action@v1
- name: Use pscale
env:
PLANETSCALE_SERVICE_TOKEN_ID: ${{ secrets.PLANETSCALE_SERVICE_TOKEN_ID }}
PLANETSCALE_SERVICE_TOKEN: ${{ secrets.PLANETSCALE_SERVICE_TOKEN }}
run: |
pscale deploy-request list my-db --org my-org
```Product facts
- Type
- CLI / Terminal
- Category
- Development & Engineering › Databases and Backend
- Pricing
- Open source
- License
- Apache-2.0
- Launched
- Sep 28, 2026
- Listed
- Sep 28, 2026
- Website
- github.com
Overview
PlanetScale CLI (invoked via pscale) is the official command-line tool for PlanetScale, written in Go. It exposes core PlanetScale database concepts—such as branches and deploy requests—to developers through the CLI.
Installation
The tool supports multiple operating systems and installation methods:
- macOS: Install via Homebrew Tap (
brew install planetscale/tap/pscale). Some commands require MySQL 8 Client in your PATH, which you can install withbrew install mysql-client@8.4. - Linux: Download
.debor.rpmpackages from the releases page; Arch Linux users can use the AUR packagepscale-cli-bin. - Windows: Install via scoop by first adding the bucket, then running
scoop install pscale mysql. - Manual installation: Download precompiled binaries directly, or use the cross-platform tool
binto install. - Container image: Docker images are available. Pull
planetscale/pscale:latestor a specific version, and configure a shell alias to use it.
Integration & Automation
- MCP Server: Supports connecting to the hosted PlanetScale MCP server.
- GitHub Actions: The official
setup-pscale-actioninstalls and usespscalein CI pipelines, authenticating via a Service Token passed as an environment variable. - AI Agent support: Run
pscale agent-guideorpscale --skillto generate skill files for AI agents and automation tools; operational workflows can installplanetscale/skills.
Local Development
The API client in the repository has been vendored into internal/planetscale/, removing the dependency on the external planetscale-go library. Developers can build and test directly using go run or go build.
Key features
- Branch Management: Create and manage PlanetScale database branches from the command line.
- Deploy Requests: Initiate and process database schema deploy requests via the CLI.
- Multi-Platform Installation: Supports macOS, Linux, Windows, Docker containers, and more.
- GitHub Actions Integration: Provides setup-pscale-action for CI/CD pipelines.
- MCP Server Support: Connect to the PlanetScale-hosted MCP server.
- AI Agent Guide: Output skill files for AI agents using the agent-guide command.
Releases
Notify meQ&A
- What prerequisites does `pscale` require?AI-generated
- On macOS, some commands require MySQL 8 Client in your system PATH. You can install it with brew install mysql-client@8.4.
- How do I use `pscale` in GitHub Actions?AI-generated
- Install it using the official planetscale/setup-pscale-action@v1, and authenticate via the PLANETSCALE_SERVICE_TOKEN_ID and PLANETSCALE_SERVICE_TOKEN environment variables.
- How do I generate guidance files for AI agents?AI-generated
- Run the pscale agent-guide command, or use pscale --skill to generate installable skill files.
This product has no owner yet
It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.
Claim this productAlternatives
The product content on this page was translated by AI from the author's original.
