Skip to content

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.

Terminal window
yofix domains list
yofix domains add app.example.com
yofix domains add go.example.com --mode redirect --redirect-to https://example.com
yofix domains verify app.example.com
yofix domains primary app.example.com
yofix domains remove app.example.com --yes
CommandArgument / 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.

Terminal window
yofix environments list
yofix environments create Staging --slug staging --branch "release/*"
yofix environments delete staging --yes
CommandArgument / flags
environments list
environments create <name>--slug <slug>, --branch <pattern>
environments delete <slug>-y, --yes

Routes

Manage the routes that visual regression tests capture.

Terminal window
yofix routes list
yofix routes set /pricing --threshold 0.1
yofix routes set /dashboard --auth
yofix routes remove /pricing
CommandArgument / flags
routes list
routes set <path>--threshold <n>, --auth
routes remove <path>

Viewports

Manage the viewport sizes that visual regression tests capture.

Terminal window
yofix viewports list
yofix viewports set 1440x900 --name desktop
yofix viewports set 390x844 --name mobile
yofix viewports remove 390x844
CommandArgument / flags
viewports list
viewports set <size>--name <name> (size is WxH, e.g. 1440x900)
viewports remove <size>