Xata

Use this skill when the user wants to manage Xata serverless Postgres — branches, migrations, schema changes, or data operations from the terminal.

javimosch ce3743e 1.0 KB Updated

File contents

xata Plugin

CLI for Xata serverless Postgres. Manage database branches, run migrations, inspect schema, and operate on data without opening the web UI.

Installation

npm install -g @xata.io/cli
xata --version

Basic Usage

# Log in to your Xata account
xata auth login

# List databases in the current workspace
xata dbs list

# Create a development branch from main
xata branch create dev --from main

Common Patterns

# Pull schema to local migration files
xata schema pull

# Apply pending migrations
xata migrate apply

# Open the web console for the active branch
xata browse

Usage Examples

  • "Create a dev branch of my Xata database"
  • "Apply Xata migrations from the CLI"
  • "List databases in my Xata workspace"

SuperCLI

sc xata _ _ auth login
sc xata _ _ dbs list
sc plugins learn xata

javimosch/supercli/tree/main/plugins/xata/skills/quickstart commit ce3743e71d

Frequently asked questions

npx skillmds@latest add javimosch/xata