rork command. It works with your Rork projects from a terminal, a script or another coding agent. This page shows how to install it and sign it in to your account.
Install
- macOS and Linux
- Windows
Run this in a terminal:The installer downloads the build for your machine (Apple silicon or Intel Mac, x64 or arm64 Linux), checks it against the release checksums and puts
rork in ~/.rork/bin.It also adds that folder to your PATH. Open a new terminal afterwards so it picks that up.Sign in
Sign in once on each computer:1
Get a code
The CLI prints a short code and opens rork.com/auth/cli in your browser. If no browser opens, for example over SSH, open that address on any device yourself.
2
Confirm in the browser
Sign in to Rork if you are not already, enter the code, and approve the request.
3
Back in the terminal
The CLI says
Successfully logged in!, with your email and where it stored the session.~/.rork/auth.json (readable only by you) where no keychain is available. It renews itself, so you stay signed in until you run rork logout.
Check who you are signed in as
--project <id> or set RORK_PROJECT. Add --json for machine-readable output. When you are not signed in, it says so and exits with code 1.
Inside a Rork project, the Rork agent’s own rork is already signed in for that project, so the agent never needs rork login.
Sign out
Keep it up to date
rork update --check only reports whether a newer release exists. The CLI also tells you once a day when a new version is out.
Troubleshooting
command not found: rork
command not found: rork
Open a new terminal window. If it still says this, run the install command again.
Device code expired
Device code expired
Run
rork login again to get a new code, and finish the browser step before it expires.Signed in to the wrong account
Signed in to the wrong account
Run
rork logout, then rork login and sign in with the account you want in the browser.