arc login
Log in to Arcadible.
Usage
arc login [options]
Options:
--browser Open a web browser on Enter [boolean] [default: true]
--qrcode Show a QR code [boolean] [default: true]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Description
Logs the CLI in to your Arcadible account using a device code. No password is entered in the terminal.
$ arc login
Logging in…
<QR code>
https://account.arcadible.com/link
<CODE>
Press Enter to open the link.
To approve the login, open the link, enter the code, and log in, or scan the QR code with a phone. Pressing Enter opens the link directly in your browser. The request expires after 10 minutes.
Any browser can finish it, on this machine or another, a headless one included: the link and the code are all it needs, and arc login finishes once the account is logged in. Enter the code first, then log in, once: linking a device always asks for the password, so a browser that logged in beforehand is asked again. Opening the link again starts over, forgetting a code entered there but not yet logged in.
The account's owner finishes it: when you run arc login for someone else's account, give them the link and the code, and they log in.
On headless machines or over SSH, use --no-browser to skip the Enter prompt, and --no-qrcode to hide the QR code. Without a terminal, such as in a script, there's no Enter prompt.
The session is saved to ~/.config/arc/account.json, or %LOCALAPPDATA%\arc\account.json on Windows, and refreshed automatically when it expires. Treat that file like a password.
In CI
arc login is finished in a browser, so CI can't log in. Release from CI with arc deploy git instead: GitHub Actions builds the release, with no login. Without a login, arc deploy git still checks the repository and waits for the release, as it does for everyone.
Output
| Code | When |
|---|---|
0 | You're logged in |
1 | The request expired or failed. Run arc login again |