Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Retool CLI

$ retool Official Med Risk
Retool · Workspace & SaaS · MIT · macos / linux / windows

Retool 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.

FCRS-1.0 Score
71 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
npm install -g @tryretool/cli
CLI vs MCP Decision CLI Preferred vs MCP

Local retool check validation and Git-backed React app push/publish operate directly in local repositories.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
✓ Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

Supports retool skill install, auth login --token, and non-interactive check/push/publish, but lacks --json output and --dry-run.

  • retool skill install and --token auth
  • No global --json output format
Trust & Safety 18 / 25

Separates local retool check and preview retool push from production retool publish, limiting accidental live releases.

  • Offline retool check validation
  • Preview push separated from live publish
Setup & Portability 11 / 15

Installed via @tryretool/cli, but enforces Node.js 22+, pnpm, and git prerequisites.

  • Requires Node 22+, pnpm, and git
Utility & Efficiency 12 / 15

Covers local React app cloning, offline type validation, preview builds, and publishing cleanly.

  • Supports init, clone, check, push, publish, and apps
Maintenance & Lineage 7 / 10

Official @tryretool/cli replaces the deprecated classic tryretool/retool-cli repository.

  • Active @tryretool/cli npm package; classic repo deprecated
Docs & Verifiability 7 / 10

Documented on docs.retool.com/build/apps/guides/create/cli and @tryretool/cli README.

  • Official Retool CLI documentation

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

Authenticates via retool auth login --host <org>.retool.com, or headlessly via retool auth login --token <token> (scoped to react_apps:write) or --device.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

MIT-licensed @tryretool/cli; requires a Retool organization account (Free plan available).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Validate Retool app types and structure locally
retool check

Validates local React/TypeScript Retool app code offline without consuming server build resources.

List apps in the Retool organization
retool apps

Lists accessible Retool apps in the authenticated organization without mutating builds.

Controlled Writes & Previews

Push a preview build to Retool
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 check validates app types and structure before pushing preview builds.
  • + Separates preview retool push from live retool publish and provides retool skill install.

Caveats & Pitfalls

  • ! Lacks --json output formatting; requires Node 22+, pnpm, and git.
  • ! The older tryretool/retool-cli GitHub repository is deprecated in favor of @tryretool/cli.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI