Skip to main content

Getting Started

Make sure to first set up your PlanetScale developer environment. Once you’ve installed the pscale CLI, you can interact with PlanetScale and manage your databases straight from the command line.

The agent-guide command

Shows guidance for AI agents and automation using pscale. Use --format json for a machine-readable bootstrap response with conventions, hosted MCP details, skills install commands, and suggested next steps.
Requires pscale 0.292.0 or later. Install or upgrade with brew install pscale or brew upgrade pscale.
For a copy-paste agent setup prompt, see Agent setup prompt (Markdown export). Usage:
pscale agent-guide --format json

JSON response fields

FieldDescription
status"ok" when the guide loaded successfully
guideFull CLI agent guide text (same content as the CLI repo AGENTS.md)
first_commandSuggested first command (pscale auth check --format json)
agent_guide_commandCommand to re-fetch this guide
hosted_mcp_urlHosted PlanetScale MCP server URL
mcp_docs_urlLink to MCP documentation
skills_repo_urlplanetscale/skills repository
skills_setup_commandClone + script/setup one-liner
skills_npx_commandnpx skills add planetscale/skills -g -y
skills_cli_automation_skillSkill id for CLI conventions (14-pscale-cli-automation)
supported_enginesmysql, postgresql
conventionsShort list of CLI rules for agents
next_stepsCommands to run after reading the guide

Global flags

FlagDescription
-f, --format jsonRequired for automation — JSON on stdout
--api-url <URL>Non-production API base URL
--config <FILE>Config file (default $HOME/.config/planetscale/pscale.yml)
-h, --helpHelp for agent-guide

Examples

Human-readable output (default):
pscale agent-guide

Need help?

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