CLI commands
The ren CLI has a command for each operation of the Ren API, plus commands to sign in, upgrade and manage infrastructure as code. To install it and sign in, see CLI.
Syntax
ren <group> [<subgroup>] <action> [<resource>] [flags]ren space get engineering
ren space member list engineering
ren task comment add ENG-12 --body "On it"Global options
These flags work with every command, before or after it.
| Option | What it does |
|---|---|
--output json, --output pretty | Chooses the format. Without it, ren prints readable text in a terminal and JSON when you pipe or redirect it |
--help, -h | Shows the actions, arguments and flags at that level. It works without signing in |
--version, -v | Prints the CLI’s version, such as ren v0.2.0 |
--completions <shell> | Prints a completion script for bash, zsh, fish or powershell |
For example, to add completions to zsh:
ren --completions zsh > "${fpath[1]}/_ren"Environment variables
| Variable | What it does |
|---|---|
REN_URL | The Ren server to call. The default is https://api.useren.ai. Each server needs its own ren login |
REN_TOKEN | A bearer token that ren sends instead of the one ren login saved |
REN_NO_UPDATE_CHECK | Set to 1 to skip the daily check for a newer release |
XDG_CONFIG_HOME | ren keeps its sign-in in $XDG_CONFIG_HOME/ren. Without it, the folder is ~/.config/ren |
Input
Most commands take the resource they act on as an argument, and a flag for each field.
ren task create --space engineering --title "Fix the build" --agent implementer --labels ci,urgent| Value | How to pass it |
|---|---|
| A resource | Its slug or its ID, wherever help says “slug or ID”, such as --space or --agent |
| A task | Its number, such as ENG-12, or its ID |
| A list | Values separated by commas, as in --labels ci,urgent |
| A choice | One of the values help lists, such as todo for --status |
For nested fields or long text, pass the request body as JSON with --input: inline, from a file with @file, or from stdin with @-. Flags override the same field in --input.
ren task create --space engineering --input @task.json{
"title": "Fix the build",
"description": "The test job fails on main since the last dependency update.",
"priority": "high"
}Unlike flags, --input uses the API’s own field names and takes IDs, not slugs: spaceId with a spc_… value, not --space engineering. The OpenAPI document has each operation’s field names.
Pagination
A list command returns one page. Choose it with --page and --page-size, at most 100 per page.
ren task list --space engineering --status todo --page-size 2ID TITLE STATUS CREATED AT
tsk_01JZ9A4C8E2F6G0H3J5K7M9N1P Fix the build todo 2026-11-20T09:14:00.000Z
tsk_01JZ9A5D9F3G7H1J4K6M8N0P2Q Update the README todo 2026-11-21T10:02:00.000Z
Page 1 of 3, 5 total. Next: --page 2In JSON, ren prints the API’s response unchanged. For the shape of a page, see Pagination.
Command groups
These commands come with the CLI:
| Command | What it does |
|---|---|
ren login | Signs you in to an organization. --no-browser prints the sign-in link instead of opening it |
ren logout | Signs you out and revokes the CLI’s access |
ren whoami | Shows your email and organization |
ren upgrade | Installs the latest release, or the one you name |
ren health | Shows the server’s status and version. It needs no sign-in |
ren infra | Validates, plans, applies and pulls a .ren folder. See Plan and apply |
The other groups each manage one kind of resource through the Ren API:
| Group | What it manages |
|---|---|
space | Spaces, their members, join requests, agents, settings and invite links |
agent | Agents, and moving an agent to another space |
task | Tasks: assign, start, review and finish them, with comments, activity and pull requests |
label | Task labels |
view | Saved views |
session | Chats: list, read and archive them, with their cost, links and pull requests |
schedule | Automations on a schedule: pause, resume, run now and read their runs |
webhook | Automations that start from a webhook: URL, signing secret, test and replay |
webhook-request | The requests that reached a webhook |
artifact | Artifacts |
app | Apps, their profiles and skills, and the app registry |
credential | Secrets and profiles: create, rotate, move, copy and remove them, and sign in to an MCP |
oauth | Your organization’s own OAuth clients for apps, and app sign-ins in progress |
mcp | Reads a remote MCP server’s sign-in and tools before you add it |
environment | Machines: their saved settings, builds and providers |
channel | Channels: installs for Slack, Linear and GitHub, and the space each place works in |
memory | Memory files |
drive | Downloads a Drive file |
files | Lists, reads and deletes Drive and memory files |
repository | The repositories Ren can read on each git host |
inference | Model providers and inference keys. setup and sync are on Inference setup |
org | The organization’s settings |
organization | The organization’s invite links |
billing | The plan, credit and invoices, and the billing portal |
feedback | Sends feedback to the people who build Ren |
Examples
Give a task to the implementer, then comment on it:
ren task create --space engineering --title "Fix the build" --agent implementer
ren task comment add ENG-12 --body "The failing job is test-unit."Print the number and title of each task in progress:
ren task list --space engineering --status in_progress | jq -r '.items[] | "\(.identifier) \(.title)"'Exit codes
| Code | Meaning |
|---|---|
0 | The command succeeded |
1 | The command failed: the API refused it, the input was invalid or ren could not reach the server |
2 | Usage error: an unknown command or flag, or a missing argument |
130 | You pressed Ctrl+C |
Errors
Errors go to stderr. In a terminal, ren prints the message, and the command’s help too if you mistyped the command. In JSON, it prints one line:
{ "error": { "type": "NotFoundError", "message": "Space not found." } }When the API refused the request, type is the API’s error type and the error’s other fields follow; see Errors. Two types come from the CLI itself: UsageError for a mistyped command, and CliError for anything else, such as a server it can’t reach. If a flag or --input fails validation, the error also has a problems list that names the flag behind each problem.