Quick Start
Quick Start
Section titled “Quick Start”1. Set Your Workspace
Section titled “1. Set Your Workspace”First, list available workspaces:
sup workspace listSet your active workspace:
sup workspace use 1232. Explore Your Assets
Section titled “2. Explore Your Assets”List your charts:
sup chart list --mineList dashboards:
sup dashboard list --limit 103. Pull Assets Locally
Section titled “3. Pull Assets Locally”Pull charts with dependencies:
sup chart pull --ids 456,789This creates a local ./assets/ directory with your charts and their dependencies.
4. Run SQL Queries
Section titled “4. Run SQL Queries”Execute queries directly:
sup sql "SELECT COUNT(*) FROM orders WHERE created_at > '2024-01-01'"Export results:
sup sql "SELECT * FROM customers" --json > customers.json5. Push to Another Workspace
Section titled “5. Push to Another Workspace”Set a target workspace:
sup workspace set-target 456Push your charts:
sup chart push --forceCommon Workflows
Section titled “Common Workflows”Development to Production
Section titled “Development to Production”# Pull from devsup workspace use dev-workspacesup dashboard pull --ids 123
# Push to prodsup workspace use prod-workspacesup dashboard pushBackup Assets
Section titled “Backup Assets”sup chart pull --allsup dashboard pull --allgit add assets/git commit -m "Backup analytics assets"