Logs in to your Wix account.
The following flags are available for the wix login command:
| Flag | Description |
|---|---|
--api-key <token> | Authenticate using an API key for automations and CI environments. |
Without the --api-key flag, wix login authorizes the CLI in a browser. The command displays a one-time code and waits while you confirm that code on the Wix login page, then completes on its own. Follow the instructions in the terminal.
If you're already logged in, wix login exits without asking you to authorize again. To switch accounts, run wix logout first.
The CLI can't open a browser for you when you work over SSH, in a container, or in a remote development environment. You can still authorize the CLI from a browser on another device, using the URL and code the command provides.
In a non-interactive terminal, such as an AI coding agent or an automated script, the command reports its progress as JSON instead of prompting you. Use --api-key to authenticate in these environments.
Last updated: 26 July 2026