Skip to main content

Retool CLI reference

Learn about the Retool CLI and how to complete authentication.

The Retool CLI supports commands for managing apps, workflows, and more from your terminal. It supports multiple authentication options which you trigger from the CLI.


You need to complete at least one form of authentication before using the CLI. Authentication options include:

  • Google SSO
  • Email and password
  • Cookie validation

After you install the CLI, run retool login to complete authentication.

You can also log into a localhost version of Retool if you don't want to work with your production instance.

Cookie validation is required when 2FA is enabled for your account. You complete this process by passing your xsrfToken and accessToken to the CLI. You can generally find these tokens using your web browser's developer tools or cookie inspector.