Skip to main content

Overview

The Mixpeek CLI (@mixpeek/cli) lets you deploy Canvas apps, stream build logs, list preview environments, and run a local dev server — all from your terminal.

Installation


Authentication

This stores your API key locally for use in subsequent commands. You can also pass --api-key to any command.

Commands

mixpeek apps deploy

Build your app locally and deploy it to Canvas.
What it does:
  1. Detects your package manager (npm, yarn, pnpm)
  2. Runs npm run build (or equivalent)
  3. Zips the dist/ output directory
  4. Uploads the bundle to Mixpeek
  5. Triggers a deploy
Options:
The CLI builds dist/ (not src/). Make sure your build script outputs to dist/, build/, or out/.

mixpeek apps logs

Stream real-time build logs for an active deploy.
Log lines are printed with timestamps and colored output. The stream closes automatically when the deploy completes or fails.

mixpeek apps preview

List active preview deployments for an app.
Output:

mixpeek apps dev

Start a local development server with Mixpeek environment variables pre-configured.
This spawns your project’s dev server (e.g., npm run dev) with VITE_MIXPEEK_API_URL set, so API proxy calls work locally.

CI/CD integration

Use the CLI in GitHub Actions or any CI pipeline: