Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/Build and deploy apps with retools cli
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

Build and deploy apps with Retool’s CLI

Source: Retool•September 27, 2026 at 12:07 PM

Build and deploy apps with Retool’s CLI

Choose the right tool for the job: how Retool's updated CLI compares to the MCP server, and when to build from your terminal instead of Claude Chat.

If you’ve been using our MCP server, you’re familiar with the benefits of working in Retool from Claude, Codex, and other agents. Now, with our new command line interface (CLI), you can build Retool apps locally using bash commands or natural language prompting.

The new Retool CLI allows users to write and validate React apps directly on their machines while Retool handles governance, permissions, and resource access checks. Retool’s agent and sandbox is only invoked for previewing or publishing. This structure allows for faster building—writing code locally avoids an agent-to-agent loop and is more familiar for developers who are used to working directly with their repository.

These benefits have been evident from the start of our private beta. Stackdrop (opens in a new tab), a firm that builds custom internal apps for operations and engineering teams, found retool check to be particularly useful while building apps for a new client. This one command validates the project before it’s deployed and it works in seconds, local and offline. The validator caught two subtle placeholder-ordering bugs in code they’d written, where the SQL read perfectly and would have written the wrong values into the wrong columns. These are the type of bugs you otherwise meet in production much later, and no amount of code review was going to find them.

Mahmoud, Stackdrop’s CTO, summarized his experience, “Building a Retool app this way keeps us in our preferred software development workflow. We haven’t opened the app editor once for any of these builds.”

You can also use Retool’s CLI to securely deploy apps built with vibe-coded platforms like Lovable, Cursor, and Replit. Watch Angelik, our developer advocate, export a Replit app and deploy it in Retool using Claude.

Generally, you can differentiate between when to use MCP or CLI with the following shorthand: building is platform dependent, admin tasks require MCP, and querying resources can be done with both.

MCP server

CLI

Project plan

You know the outcome you want but you’re not exactly sure of the steps

You know the exact steps and have built this kind of app before

Typical user

Non-technical (e.g. an operations role)

Technical, comfortable with agentic coding

Example

"Take refunds.csv, create a Retool DB table from it, and build an app in the Ops folder that lists pending refunds with an approve button."

CLI bash commands or natural language prompts (like the MCP example)

For a detailed look at the differences between our MCP server and CLI, read our post on when to use MCP vs. CLI.

The Retool CLI requires the use of a terminal, so the agentic coding tool you choose must meet this requirement. Supported options include Claude Code and Claude from Anthropic, or Codex and ChatGPT Work from OpenAI.

Retool’s new CLI is currently available in public beta for cloud customers on team, business, and enterprise plans. Self-hosted customers will have access in upcoming edge and stable releases. Read the docs to get started →

← All articles

What this article says

More in Software Development

All →
What Are Memory and Context in AI Agent Observability?
Telerik

What Are Memory and Context in AI Agent Observability?

How To Calculate CAC: Customer Acquisition Cost Formula (2026)
Shopify

How To Calculate CAC: Customer Acquisition Cost Formula (2026)

How to Calculate Safety Stock for Peak Season
Shipstation

How to Calculate Safety Stock for Peak Season

Distributed Inventory vs. Single Warehouse
Shipstation

Distributed Inventory vs. Single Warehouse

Levine Heart and Wellness Delivers Proactive Care
Athenahealth

Levine Heart and Wellness Delivers Proactive Care

Bourne Family Medicine Maximizes Revenue
Athenahealth

Bourne Family Medicine Maximizes Revenue

More from Retool

Put your cloud commitment to work: Retool is now on Google Cloud Marketplace
Retool

Put your cloud commitment to work: Retool is now on Google Cloud Marketplace

Data Access Enforcement: Set data permissions once and enforce access on every query
Retool

Data Access Enforcement: Set data permissions once and enforce access on every query

Retool launches the first centralized agent harness
Retool

Retool launches the first centralized agent harness

Retool MCP vs. CLI: When to use each building surface
Retool

Retool MCP vs. CLI: When to use each building surface

Who’s watching the agents? A framework for multi-agent governance
Retool

Who’s watching the agents? A framework for multi-agent governance

How technical leaders are managing rising AI costs in 2026 [Survey]
Retool

How technical leaders are managing rising AI costs in 2026 [Survey]