Weco LogoWeco Docs
ReferenceCLI Reference

Auth

Authenticate the CLI with your Weco account.

login

Authenticate the CLI with your Weco account:

weco login

This starts a device authorization flow: Weco prints a verification link (and opens it in your browser), you approve the login on the web, and the CLI saves your credentials locally. If you run an authenticated command while logged out, Weco offers to start this flow automatically.

Setting the WECO_API_KEY environment variable takes precedence over saved credentials — useful for CI and headless agents.

logout

This command logs you out of your Weco account and removes saved authentication credentials.

weco logout

After logging out, you'll need to authenticate again the next time you run Weco.

On this page