Connect to Loco¶
A CLI session belongs to a Loco API host. Sign in to the instance that operates your applications:
loco login
The default API host is https://api.loco.build; the default dashboard is https://loco.build. Follow the sign-in instructions printed by the installed CLI.
Staging¶
loco login --host https://api.staging.loco.build
loco config set webHost https://staging.loco.build
loco web
The CLI saves the host used for login. Later commands use that host. Sign in again when switching instances; a staging session does not sign you into production.
Dedicated and self-hosted instances¶
Use loco login --host with the API URL supplied by the instance operator, and set webHost to that instance's dashboard URL. Deployment modes explains who operates each instance.
Return to production¶
loco login --host https://api.loco.build
loco config set webHost https://loco.build
For commands supported by your installed release, run loco help. The Go infrastructure workflow requires a CLI release containing the infrastructure cutover.