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.
yofix loginyofix login --token yf_xxxxxxxxxxxxyofix login --device --no-browser| Flag | Description |
|---|---|
--token <token> | Use this token (or set $YOFIX_TOKEN) |
--device | Force the browser device-code flow |
--no-browser | Do not auto-open the browser; print the URL instead |
yofix logout
Clear stored credentials for the current host.
yofix logoutyofix whoami
Show the active user, team, and host.
yofix whoamiyofix whoami --jsonyofix switch
Change the active team for future commands.
yofix switch <teamSlug>yofix switch acme| Argument | Description |
|---|---|
<teamSlug> | Team slug to set as default for the active profile |
yofix link
Link the current directory to a YoFix project. Writes .yofix/project.json.
yofix linkyofix link --project my-app --team acme| Flag | Description |
|---|---|
--project <slug> | Project slug to link to (skips the picker) |
--team <slug> | Team slug (skips the team picker) |
yofix unlink
Remove the local link by deleting .yofix/project.json.
yofix unlink