@yofix/cli
v0.1.10
Published
YoFix CLI: deploy previews and visual regression tests from your terminal
Maintainers
Readme
@yofix/cli
The official command-line interface for YoFix — deploy preview environments and run visual regression tests from your terminal or CI, no dashboard required.
npm install -g @yofix/cli
yofix login
cd your-project && yofix deployInstall
npm install -g @yofix/cli # or: pnpm add -g @yofix/cli / yarn global add @yofix/cliRequires Node.js 20+. Run it without installing via npx @yofix/cli <command>.
Quickstart
yofix login # interactive device login (or: --token yf_…)
cd ~/code/your-project
yofix link # link this directory to a YoFix project
yofix deploy # package the working directory and deploy a preview
yofix deploy --prod # ship to production
yofix logs --follow # stream the buildyofix deploy uploads your working directory (honoring .gitignore) and builds it — no git push or repo connection needed. Add --no-wait for CI.
What you can do
| Area | Commands |
|------|----------|
| Deploy | deploy, ls, inspect, logs, watch, promote, rollback, redeploy, cancel |
| Env vars | env list / get / set / unset / pull / import / clone |
| Config | domains, environments, routes, viewports |
| Visual regression | vrt run / diff / approve / reject / rerun / logs |
| Org | teams, activity, tokens |
| Meta | status, doctor, update, completion, telemetry |
| Raw API | api list / call / curl (call any endpoint directly) |
Run yofix --help or yofix <command> --help for the full surface.
Authentication
yofix login # device flow — opens a browser, no token handling
yofix login --token yf_… # or pass a project API key directlyTokens are stored in your OS keychain when available (falling back to ~/.yofix/config.json, mode 0600). In CI, set YOFIX_TOKEN=yf_…. Scope a request to a team with --team <slug>.
Built for agents and scripts
Stable JSON. Pass
--json(or just pipe) and every command emits{ ok, command, data | error, exitCode }. The output an agent parses is the output you read.Stable error codes. Every failure carries a machine-readable
YF_*code and a docs link — no string matching.MCP server. Two ways to connect any Model Context Protocol client (Claude, Cursor, Devin). Agents can create deployments from a working directory (no git push), read build logs, promote or roll back production, manage projects, env vars, and domains, and verify changes with VRT screenshot diffs.
Hosted (recommended): point your client at
https://api.yofix.ai/v1/mcp(Streamable HTTP). Authenticate with OAuth (full discovery + dynamic client registration; a consent page scopes the connection to one team and role) or pass a team API key as a bearer token.Local stdio:
yofix mcp serveruns the same tool catalog over stdio:{ "mcpServers": { "yofix": { "command": "yofix", "args": ["mcp", "serve"] } } }OpenAPI. The full API is described at
https://app.yofix.ai/v1/openapi.json, with an agent-readable index athttps://app.yofix.ai/llms.txt.
Links
- Docs: https://yofix.ai/docs/cli/overview
- Dashboard: https://app.yofix.ai
- API + OpenAPI spec: https://app.yofix.ai/v1/openapi.json
- Agent docs: https://app.yofix.ai/llms.txt
- Issues: https://github.com/yofix/app/issues
License
MIT
