Retool CLI reference
A command-line tool for interacting with Retool.
Retool CLI is a Node.js command-line tool for interacting wth your Retool organization.
Installation
npm install -g retool-cli
Retool CLI requires Node.js.
Authentication
Retool CLI supports the following authentication options:
- Google SSO.
- Email and password.
- Cookie validation.
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.
You can also log into a localhost
version of Retool if you don't want to work with your production instance.
Usage
retool [command] [option] [parameters]
Commands
Available commands for Retool CLI.
login
Sign in to Retool.
retool login
logout
Sign out of Retool.
retool logout
signup
Create a Retool account.
retool signup
whoami
Display information about the user currently logged in
retool whoami
apps
Interact with apps.
--create
--create-from-table
--delete
--export
--list
--list-recursive
database
Interact with Retool Database tables.
--create
--delete
--fromPostgres
--gendata
--list
--upload
scaffold
Scaffold an app, database table, and workflow. Optionally include --no-workflow
to skip workflow generation.
--columns
--delete
--from-csv
--name
custom-component
Interact with custom components.
--clone
telemetry
Control telemetry.
--disable
--enable
workflows
Interact with workflows.