From dev
Convex CLI expert for serverless backend and real-time database. Use when users need to deploy functions, manage environments, or import/export data.
npx claudepluginhub leobrival/topographic-plugins-officialThis skill is limited to using the following tools:
Convex is a serverless backend platform with a built-in real-time database. This guide provides essential workflows and quick references for common Convex operations.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Convex is a serverless backend platform with a built-in real-time database. This guide provides essential workflows and quick references for common Convex operations.
# Check CLI installation
convex --version
# Authenticate with Convex
convex login
# Initialize new project
convex init
# Start local development
convex dev
# Deploy to production
convex deploy
# View deployment status
convex deployments list
# Login and initialize
convex login
convex init
# Start dev server with hot reload
convex dev
# Dev server runs at http://localhost:3210
# Changes to functions auto-reload
# Dashboard shows data and logs in real-time
# Create function in convex/queries/ or convex/mutations/
# Test function locally
convex run queries/getUser --args '{"id": "123"}'
# Deploy to production
convex deploy --typecheck
# Monitor logs
convex logs --prod --follow
# Set API keys for current environment
convex env set API_KEY sk_test_123
convex env set DATABASE_URL postgres://...
# Set production secrets
convex env set SECRET_KEY value --prod
# List all variables
convex env list
# Export data before major changes
convex export --all --output backup.json
# Import seed data
convex import users seed-users.json
# Batch import multiple tables
convex import --all data/
# Backup production data
convex export --all --prod --output prod-backup.json
# Stream production logs
convex logs --prod --follow
# Filter logs by function
convex logs --function myFunction --level error
# Test function in production
convex run queries/getUser --args '{"id": "123"}' --prod
# View all function executions
convex dashboard --logs
When to use which command:
convex dev for local server with hot reloadconvex run function-name --args '...'convex deploy with --typecheck and --dry-run firstconvex env set/get/list commandsconvex export --all --output backup.jsonconvex import table-name file.jsonconvex logs --follow for real-time monitoring# 1. Start development
convex dev
# 2. Edit functions in convex/queries/, convex/mutations/
# 3. Test locally
convex run queries/myFunction --args '{"key": "value"}'
# 4. Type check and deploy
convex deploy --typecheck
# 5. Monitor
convex logs --prod --follow
# Preview changes
convex deploy --dry-run
# Deploy with message
convex deploy --message "feat: added user authentication"
# Monitor after deploy
convex logs --prod --limit 50
# Development variables
convex env set NODE_ENV development
convex env set LOG_LEVEL debug
# Production variables
convex env set NODE_ENV production --prod
convex env set LOG_LEVEL error --prod
# Verify variables
convex env list
convex env list --prod
# Regular backups
convex export --all --output "backup-$(date +%Y-%m-%d).json"
# Seed data for testing
convex import users test-data/users.json
# Database migrations
convex export --all --output pre-migration.json
# Update schema.ts
convex deploy
# Verify with: convex run queries/checkSchema
Common Issues:
Dev server won't start
convex dev --clear-deployment to reset stateFunction not found error
Environment variables not loading
convex env set KEY value and redeployDeployment fails with type errors
convex deploy --typecheck to check types firstCannot access production data
--prod flag with commandsFor detailed troubleshooting steps, see the Troubleshooting Guide.
Load as needed for detailed information:
Commands Reference - Complete CLI command documentation with all flags and options. Use when you need exact syntax or flag details for any Convex command.
Common Patterns - Real-world patterns and workflows for development, data management, deployment, team collaboration, monitoring, and CI/CD integration. Use for implementing specific workflows or integrations.
Troubleshooting Guide - Detailed error messages, diagnosis steps, and resolution strategies for authentication, development, deployment, functions, data, environment, and configuration issues. Use when encountering errors or unexpected behavior.
When to use each reference: