Skip to content

CLI Commands

import { Tabs, TabItem } from ‘@astrojs/starlight/components’;

Commands that manage the background daemon process.

Terminal window
mia start # Start the daemon (via PM2)
mia stop # Stop the daemon
mia restart # Restart the daemon
mia status # Show daemon status (PID, uptime, plugin)
mia logs # Tail daemon logs (live stream)
Terminal window
mia chat # New conversation
mia chat --resume <id> # Resume a saved conversation
mia chat --list # List saved conversations
mia chat --cwd /path/to/proj # Override working directory
mia chat --no-context # Skip workspace context injection

Inside an interactive chat session:

CommandDescription
/add <file>Queue a file for injection into context
/exec <command>Queue command output for injection
/diff [ref]Queue current git diff
/remember <fact>Store a fact in memory
/fetch <url>Fetch URL content and inject
/newStart a fresh conversation
/clearClear the terminal
/exitEnd the session
/helpShow available commands
Terminal window
mia ask "Explain the auth flow"
mia ask --cwd ~/project "What does this do?"
echo "error log" | mia ask --raw "What caused this?"

Generate AI-powered commit messages from staged changes.

Terminal window
mia commit # Interactive: review and confirm
mia commit --yes # Auto-confirm (no prompt)
mia commit --all # Stage all changes first
mia commit --dry-run # Show message without committing
mia commit --push # Push after committing

Generate a summary of recent development activity.

Terminal window
mia standup # Today's activity
mia standup --yesterday # Yesterday's activity
mia standup --hours 48 # Last 48 hours
mia standup --repos ~/a,~/b # Across multiple repos

Generate a changelog from git history.

Terminal window
mia changelog # Recent changes
mia changelog --from v1.0.0 # From a specific tag
mia changelog --from v1.0 --to v2.0 # Between tags
mia changelog --write # Write to CHANGELOG.md
Terminal window
mia plugin list # Show all plugins and status
mia plugin switch gemini # Switch active plugin
mia plugin test # Verify active plugin works
mia plugin info claude-code # Details about a specific plugin
Terminal window
mia memory list # Show recent stored facts
mia memory search "pnpm" # Find facts by query (FTS5)
mia memory add "uses Rust" # Manually store a fact
mia memory stats # Memory stats by type
Terminal window
mia scheduler list # Show all tasks
mia scheduler add "0 9 * * 1-5" "standup" # Add cron task
mia scheduler delete <id> # Remove a task
mia scheduler start <id> # Enable a task
mia scheduler stop <id> # Disable a task
mia scheduler test <id> # Run immediately
Terminal window
mia p2p status # Connection status (peers, uptime)
mia p2p qr # Show QR code for mobile pairing
mia p2p refresh # Rotate seed and reconnect
Terminal window
mia config # Show all config
mia config get activePlugin # Get a specific value
mia config set maxConcurrency 5 # Set a value
Terminal window
mia doctor # Workspace health check (deps, config, plugins)
mia log # Recent dispatch history
mia log --n 20 # Last 20 dispatches
mia usage # Token usage summary
mia usage --week # This week's usage
mia usage --all # All-time usage
Terminal window
mia update # Pull latest, rebuild, restart daemon