The Render CLI
Manage your Render resources from the command line.
Use the Render CLI to manage your Render services and datastores directly from your terminal:
Among many other capabilities, the CLI supports:
- Creating, updating, and cloning services
- Triggering service deploys, restarts, and one-off jobs
- Opening a psql session to your database
- Viewing and filtering live service logs
- Validating
render.yamlfiles for Render Blueprints - Installing Render agent skills for AI coding tools
The CLI also supports non-interactive use in scripts and CI/CD.
Please submit bugs and feature requests on the CLI's public GitHub repository.
Setup
1. Install or Upgrade
Use any of the following methods to install the Render CLI or upgrade to the latest version:
Homebrew installation
Run the following commands:
WinGet installation
Run the following command:
Installing with curl
Run the following command:
Direct download
- Open the CLI's GitHub releases page.
- Download the executable that corresponds to your system's architecture.
If you use an architecture besides those provided, you can build from source instead.
Building from source
We recommend building from source only if no other installation method works for your system.
-
Install the Go programming language if you haven't already.
-
Clone and build the CLI project with the following commands:
After installation completes, open a new terminal tab and run render with no arguments to confirm.
2. Log in
The Render CLI uses a CLI token to authenticate with the Render platform. Generate a token with the following steps:
-
Run the following command:
Your browser opens a confirmation page in the Render Dashboard.
-
Click Authorize CLI.
The CLI saves the generated token to its local configuration file.
-
When you see the success message in your browser, close the tab and return to your terminal.
-
The CLI prompts you to set your active workspace.
You can switch workspaces at any time with
render workspace set.
You're ready to go!
Common commands
This is not an exhaustive list of commands.
- See the full generated command reference.
- You can also:
- Run
renderwith no arguments for a list of all available commands. - Run
render help <command>for details about the specified command.
- Run
| Command | Description |
|---|---|
|
|
Opens your browser to authorize the Render CLI for your account. Authorizing generates a CLI token that's saved locally. If the CLI already has a valid CLI token or API key, this command instead exits with a zero status. |
|
|
Lists the Render workspaces your account belongs to. In non-interactive mode, set the output format with |
|
|
Sets the CLI's active workspace. CLI commands always operate on the active workspace. |
|
|
Lists all services and datastores in the active workspace. Select a service to perform actions like deploying, viewing logs, or opening an SSH/psql session. |
|
|
Creates a new service in the active workspace. This command only runs in non-interactive mode. Provide a source for a new service ( |
|
|
Lists deploys for the specified service. Select a deploy to view its logs or open its details in the Render Dashboard. If you don't provide a service ID in interactive mode, the CLI prompts you to select a service. |
|
|
Triggers a deploy for the specified service. If you don't provide a service ID in interactive mode, the CLI prompts you to select a service. In non-interactive mode, helpful options include:
|
|
|
Opens a psql session to the specified Render Postgres database. If you don't provide a database ID in interactive mode, the CLI prompts you to select a database. In non-interactive mode, helpful options include:
|
|
|
Opens an SSH session to a running instance of the specified service. If you don't provide a service ID in interactive mode, the CLI prompts you to select a service. Use |
|
|
Validates the structure of the specified If you don't provide a file path, the CLI defaults to |
|
|
Manages Render agent skills for AI coding tools such as Claude Code, Codex, OpenCode, and Cursor. Run See Using Render with Coding Agents for details on available skills and installation options. |
Non-interactive mode
By default, the Render CLI uses interactive, menu-based navigation. This default is great for manual use, but not for scripting or automation.
Configure the CLI for non-interactive use in CI/CD and other automated environments with the following steps:
1. Authenticate via API key
The Render CLI can authenticate using an API key instead of render login. Unlike CLI tokens, API keys do not periodically expire. For security, use this authentication method only for automated environments.
-
Generate an API key with these steps.
-
In your automation's environment, set the
RENDER_API_KEYenvironment variable to your API key:
If you provide an API key this way, it always takes precedence over CLI tokens you generate with render login.
2. Set non-interactive command options
Set the following options for all commands you run in non-interactive mode:
| Flag | Description |
|---|---|
|
Sets the output format. Supported values are In non-TTY environments (including piped output), the CLI defaults to
|
|
Skips any confirmation prompts that the command would otherwise display. |
For example, to list the active workspace's services in JSON format:
You can also set the output format globally with the RENDER_OUTPUT environment variable:
Example: GitHub Actions
This example action provides similar functionality to Render's automatic Git deploys. You could disable auto-deploys and customize this action to trigger deploys with different conditions.
To use this action, first set the following secrets in your repository:
| Secret | Description |
|---|---|
RENDER_API_KEY | A valid Render API key |
RENDER_SERVICE_ID | The ID of the service you want to deploy |
Local directory
The Render CLI creates a local directory for storing files:
This directory contains:
cli.yaml, the CLI configuration file.state/, a directory that stores data for usage telemetry.skills.yaml, a record of your installed skills.
You can change the directory where the Render CLI stores state/ and cli.yaml by setting the RENDER_CLI_CONFIG_DIR environment variable:
This setting does not affect skills.yaml, which stays in $HOME/.render/.
Usage telemetry
The Render CLI enables usage telemetry by default in version 2.26.0 and later.
The Render CLI collects usage telemetry to help us understand common use cases and improve user experience.
What Render collects
Telemetry includes the following:
- Commands run (e.g.,
render services list) - Command performance and completion status
- CLI version
- System information
- Execution context
The Render CLI does not collect sensitive user data, such as command arguments, environment variable values, passwords, or the contents of your files.
To see exactly what usage data the Render CLI generates, set the RENDER_LOG_ANALYTICS environment variable to 1:
With RENDER_LOG_ANALYTICS enabled, the CLI prints each telemetry event after a command completes:
Each telemetry event includes the following fields:
Show telemetry fields
| Field | Description |
|---|---|
|
Allow-listed environment variable names that indicate the CLI ran inside an AI coding agent (e.g., |
|
The CPU architecture the CLI ran on. |
|
Allow-listed environment variable names that indicate the CLI ran in a CI environment (e.g., |
|
The Render CLI version that generated this event. |
|
The CLI command that was invoked (e.g., |
|
How the command ended (e.g., |
|
How long the command took to run, in milliseconds. |
|
The command's exit code. |
|
A random UUID that the CLI generates and stores to identify this installation. |
|
Whether |
|
Whether |
|
Whether |
|
Whether the |
|
Whether the CLI attempted to open a full-screen interface in interactive mode. |
|
The operating system the CLI ran on. |
|
The output format of this command. |
|
An RFC 3339 UTC timestamp of when the command started, based on the client's clock. |
For the most up-to-date list of data collected, see the telemetry event model.
Disabling telemetry
You can disable telemetry at any time by setting RENDER_CLI_DISABLE_ANALYTICS to 1:
The Render CLI honors the DO_NOT_TRACK standard, so you can also disable telemetry by setting DO_NOT_TRACK to 1:
Managing CLI tokens
For security, CLI tokens periodically expire. If you don't use the Render CLI for a while, you might need to re-authenticate with render login.
View a list of your active CLI tokens from your Account Settings page in the Render Dashboard. You can manually revoke a CLI token that you no longer need or that might be compromised. Expired and revoked tokens do not appear in the list.