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 audit log command

Lists all audit logs in an organization. The user running the command must have Organization-level permissions, specifically list_organization_audit_logs. Usage:

Available sub-commands

Available flags

Global flags

Examples

The list sub-command with --org flag

Command:
Output:

Pagination

Use the ID from the last result and pass it as the --starting-after to retrieve the next page of results.

Need help?

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