Install the CLI
To install the CLI, use one of these commands:
All methods install the same binary. To see how to update your copy, run
judt upgrade.
Sign in
Use one of these methods:JUDT_API_KEY. This variable has priority over a saved sign-in:
judt whoami. To learn which credential to use, see Authentication.
Manage an App
Commands underjudt apps act on one App. To set the App for a directory, run judt apps use. The CLI saves the App in .judt.json. judt apps create saves the new App in the same way. To set the App for one command, use --app.
judt api:
--help. The help tells what the command does, which App it acts on, its flags, and the API call that it makes.
Use the CLI in a script
- Add
--jsonto get the JSON response of the API. - Lists return one page. Add
--allto get all pages, or--cursorwith thenext_cursorof the previous page. - Text flags take
@pathto read a file and-to read stdin. - If a write fails with
503or504, stderr shows an--idempotency-keyvalue. Run the same command again with that flag to get the result of the first run. Without the flag, the work runs again.
judt apps run exits with the exit code of your command.
Environment variables
Next steps
- See all API operations in the API reference.
- Connect an MCP client in Connect to MCP.
- Limit an agent to one App in Give an agent access to a single App.