Retool CLI
$ retool Official Med RiskRetool CLI (@tryretool/cli, binary retool) lets developers and coding agents pull Retool-native React apps locally (clone), type-check and validate structures offline (retool check), push preview builds (push), and publish (publish). It supports headless --token auth and retool skill install, though it lacks --json output and requires Node 22+, pnpm, and git.
npm install -g @tryretool/cli Local retool check validation and Git-backed React app push/publish operate directly in local repositories.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports retool skill install, auth login --token, and non-interactive check/push/publish, but lacks --json output and --dry-run.
retool skill installand--tokenauth- No global
--jsonoutput format
Separates local retool check and preview retool push from production retool publish, limiting accidental live releases.
- Offline
retool checkvalidation - Preview
pushseparated from livepublish
Installed via @tryretool/cli, but enforces Node.js 22+, pnpm, and git prerequisites.
- Requires Node 22+,
pnpm, andgit
Covers local React app cloning, offline type validation, preview builds, and publishing cleanly.
- Supports
init,clone,check,push,publish, andapps
Official @tryretool/cli replaces the deprecated classic tryretool/retool-cli repository.
- Active
@tryretool/clinpm package; classic repo deprecated
Documented on docs.retool.com/build/apps/guides/create/cli and @tryretool/cli README.
- Official Retool CLI documentation
Security, Auth & Guardrails
Authenticates via retool auth login --host <org>.retool.com, or headlessly via retool auth login --token <token> (scoped to react_apps:write) or --device.
MIT-licensed @tryretool/cli; requires a Retool organization account (Free plan available).
# Retool CLI Agent Rules - Always run `retool check` locally before `retool push`. - Never run `retool publish` without explicit human approval; keep automated runs on preview `retool push`.
Agent-Ready Command Recipes
Safe Read-Only Queries
retool check
Validates local React/TypeScript Retool app code offline without consuming server build resources.
retool apps
Lists accessible Retool apps in the authenticated organization without mutating builds.
Controlled Writes & Previews
retool push -m "Update dashboard layout"
Uploads validated local changes and triggers a preview build without publishing live to production.
Strengths for Agents
- + Offline
retool checkvalidates app types and structure before pushing preview builds. - + Separates preview
retool pushfrom liveretool publishand providesretool skill install.
Caveats & Pitfalls
- ! Lacks
--jsonoutput formatting; requires Node 22+,pnpm, andgit. - ! The older
tryretool/retool-cliGitHub repository is deprecated in favor of@tryretool/cli.