CLI Reference
The Framedash CLI provides terminal access to telemetry data, analytics, and project management. It integrates into CI/CD pipelines for automated map uploads and content syncing.
Installation
Section titled “Installation”npm install -g @framedash/cliAuthentication
Section titled “Authentication”Set the API key via an environment variable:
export FRAMEDASH_API_KEY=fd_your_api_key_hereOr pass it explicitly with --api-key:
framedash status --api-key fd_your_api_key_hereVerify your key is valid:
framedash authCommon Options
Section titled “Common Options”Most commands accept these options:
| Option | Description |
|---|---|
--api-key <key> | API key (or FRAMEDASH_API_KEY env) |
--project-id <uuid> | Project ID (or FRAMEDASH_PROJECT_ID env) |
--base-url <url> | API host URL (default: https://app.framedash.dev) |
--format <fmt> | Output format: json, table, csv (default: json) |
-h, --help | Show help |
Commands
Section titled “Commands”framedash auth
Section titled “framedash auth”Verify your API key and show the bound project.
framedash authOptions: --api-key, --base-url, --format
framedash status
Section titled “framedash status”Show project health status.
framedash statusframedash dashboard
Section titled “framedash dashboard”Show dashboard KPIs (DAU, MAU, sessions, events).
framedash dashboard --days 30| Option | Values | Default |
|---|---|---|
--days | 7, 14, 30, 90 | 30 |
framedash retention
Section titled “framedash retention”Show player retention cohorts (D1, D7, D30).
framedash retention --days 14| Option | Values | Default |
|---|---|---|
--days | 7, 14, 30, 90 | 30 |
framedash funnel
Section titled “framedash funnel”Analyze event funnels to measure player conversion between steps.
framedash funnel --steps "player.spawn,player.death,player.respawn"| Option | Description | Default |
|---|---|---|
--steps | Comma-separated event names (required, 2-8 steps) | — |
--window | Time window in seconds (3600, 21600, 86400, 604800) | 86400 |
--days | Time period (7, 14, 30, 90) | 30 |
framedash query
Section titled “framedash query”Execute a SQL query against telemetry data.
# Inline SQLframedash query "SELECT event_name, count() FROM events GROUP BY event_name"
# From a fileframedash query --file ./queries/daily-active.sql| Option | Description |
|---|---|
--file <path> | Read SQL from a file instead of inline argument |
--limit <n> | Maximum rows to return |
framedash alerts
Section titled “framedash alerts”Manage performance alert rules.
# List all alert rulesframedash alerts list
# Create a new alert ruleframedash alerts create --name "FPS Alert" --map-id <uuid> \ --threshold-profile-id <uuid> --metric fps
# Update an alert ruleframedash alerts update <alert-id> --name "Updated Alert"
# Deactivate an alert ruleframedash alerts delete <alert-id>framedash maps
Section titled “framedash maps”Manage game maps.
# List mapsframedash maps list
# Delete a map by map identifierframedash maps delete <map-id>framedash map-capture
Section titled “framedash map-capture”Upload captured map images. This command has its own option parser and does not use the shared global options.
# Preview what would be uploaded (dry run)framedash map-capture --input-dir ./captures --upload --dry-run
# Upload map capturesframedash map-capture --input-dir ./captures --upload \ --api-key fd_xxx --project-id <uuid>| Option | Description |
|---|---|
--input-dir <path> | Directory containing captured map images (required) |
--upload | Actually upload the captures (required to perform upload) |
--api-key <key> | API key for upload |
--project-id <uuid> | Target project |
--base-url <url> | API base URL |
--dry-run | Preview upload without sending |
framedash content
Section titled “framedash content”Manage the content registry (items, weapons, event types, etc.).
# List content entriesframedash content list
# Import content from a JSON fileframedash content import ./game-content.json
# Delete by UUIDframedash content delete <uuid>
# Delete by type and content IDframedash content delete --type weapon --content-id ak47Usage in CI/CD
Section titled “Usage in CI/CD”GitHub Actions example:
- name: Upload maps and import content env: FRAMEDASH_API_KEY: ${{ secrets.FRAMEDASH_API_KEY }} FRAMEDASH_PROJECT_ID: ${{ vars.PROJECT_ID }} run: | framedash map-capture --input-dir ./map-captures --upload framedash content import ./game-content.jsonFor Jenkins and TeamCity examples, see the CI/CD Integration Guide.
Next Steps
Section titled “Next Steps”- API Reference — REST API details
- CI/CD Integration — Jenkins and TeamCity pipeline examples
- CI Profiling — Automated performance profiling setup