Skip to content

Identity and linking

Commands that authenticate the CLI and link a directory to a project. For the workflow, see Authentication.

yofix login

Authenticate the CLI with a YoFix account. Defaults to the browser device flow; uses a token when one is provided.

Terminal window
yofix login
yofix login --token yf_xxxxxxxxxxxx
yofix login --device --no-browser
FlagDescription
--token <token>Use this token (or set $YOFIX_TOKEN)
--deviceForce the browser device-code flow
--no-browserDo not auto-open the browser; print the URL instead

yofix logout

Clear stored credentials for the current host.

Terminal window
yofix logout

yofix whoami

Show the active user, team, and host.

Terminal window
yofix whoami
yofix whoami --json

yofix switch

Change the active team for future commands.

Terminal window
yofix switch <teamSlug>
yofix switch acme
ArgumentDescription
<teamSlug>Team slug to set as default for the active profile

Link the current directory to a YoFix project. Writes .yofix/project.json.

Terminal window
yofix link
yofix link --project my-app --team acme
FlagDescription
--project <slug>Project slug to link to (skips the picker)
--team <slug>Team slug (skips the team picker)

Remove the local link by deleting .yofix/project.json.

Terminal window
yofix unlink