Skip to content

CLI Reference

The @mistflow/cli package provides a standalone CLI for running Mistflow operations outside of an AI editor — primarily in CI/CD pipelines.

Terminal window
npm install -g @mistflow/cli

Deploy the current project.

Terminal window
mistflow deploy [--message "deploy message"] [--path ./my-project]
FlagDescription
--message, -mDeploy message (shown in dashboard)
--path, -pProject directory (default: cwd)

Show the current project status.

Terminal window
mistflow status [--path ./my-project]

Authenticate with Mistflow (opens browser).

Terminal window
mistflow login

Remove stored credentials.

Terminal window
mistflow logout

Set the MISTFLOW_API_KEY environment variable in your CI pipeline:

# GitHub Actions example
- name: Deploy to Mistflow
env:
MISTFLOW_API_KEY: ${{ secrets.MISTFLOW_API_KEY }}
run: npx @mistflow/cli deploy --message "CI deploy from ${{ github.sha }}"