Domains, environments and VRT config
Commands that configure a project: custom domains, deploy environments, and the route and viewport matrix that visual regression tests run against.
Domains
Manage custom domains for the linked project.
yofix domains listyofix domains add app.example.comyofix domains add go.example.com --mode redirect --redirect-to https://example.comyofix domains verify app.example.comyofix domains primary app.example.comyofix domains remove app.example.com --yes| Command | Argument / flags |
|---|---|
domains list | — |
domains add <domain> | --mode <connect|redirect>, --target <env>, --redirect-to <url> |
domains verify <domain> | Run the DNS verification probe |
domains primary <domain> | Promote a verified domain to primary for its environment |
domains remove <domain> | -y, --yes |
Environments
Manage deploy environments.
yofix environments listyofix environments create Staging --slug staging --branch "release/*"yofix environments delete staging --yes| Command | Argument / flags |
|---|---|
environments list | — |
environments create <name> | --slug <slug>, --branch <pattern> |
environments delete <slug> | -y, --yes |
Routes
Manage the routes that visual regression tests capture.
yofix routes listyofix routes set /pricing --threshold 0.1yofix routes set /dashboard --authyofix routes remove /pricing| Command | Argument / flags |
|---|---|
routes list | — |
routes set <path> | --threshold <n>, --auth |
routes remove <path> | — |
Viewports
Manage the viewport sizes that visual regression tests capture.
yofix viewports listyofix viewports set 1440x900 --name desktopyofix viewports set 390x844 --name mobileyofix viewports remove 390x844| Command | Argument / flags |
|---|---|
viewports list | — |
viewports set <size> | --name <name> (size is WxH, e.g. 1440x900) |
viewports remove <size> | — |