CLI Reference
The @mistflow/cli package provides a standalone CLI for running Mistflow operations outside of an AI editor — primarily in CI/CD pipelines.
Installation
Section titled “Installation”npm install -g @mistflow/cliCommands
Section titled “Commands”mistflow deploy
Section titled “mistflow deploy”Deploy the current project.
mistflow deploy [--message "deploy message"] [--path ./my-project]| Flag | Description |
|---|---|
--message, -m | Deploy message (shown in dashboard) |
--path, -p | Project directory (default: cwd) |
mistflow status
Section titled “mistflow status”Show the current project status.
mistflow status [--path ./my-project]mistflow login
Section titled “mistflow login”Authenticate with Mistflow (opens browser).
mistflow loginmistflow logout
Section titled “mistflow logout”Remove stored credentials.
mistflow logoutCI/CD usage
Section titled “CI/CD usage”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 }}"