Prod CLI for VS Code
Deploy apps and agents to the cloud with natural language, right from VS Code. This extension is a companion for the prod CLI — a single Go binary that reads your project, shows you a deploy plan, and runs it against your own cloud account. No backend, no signup.
prod "deploy this to fly with a postgres"
Features
- Deployments sidebar — a Prod view in the activity bar lists your deployments (name, platform, status, age) straight from the CLI's local history, refreshing automatically when a deploy finishes.
- One-click actions — open the live URL, open the platform console, tail logs, roll back, or destroy a deployment from the tree's context menu.
- Natural-language deploys —
Prod: Deploy… asks what you want in plain English and runs it in an integrated terminal, where prod shows its plan and cost estimate for your approval. Dry-run and deploy-to-platform variants included.
- Project scaffolding —
Prod: New Project from Template… scaffolds the CLI's starters (agent-worker, mcp-server, nextjs, fastapi, go-api).
- Safety by design — the extension never passes
--yes or --delete-data. Rollback and destroy show a confirmation in VS Code and prod itself asks again in the terminal before touching anything.
Install
- VS Code Marketplace / Open VSX: search for "Prod CLI" (publisher
pushtoprodai), or install from the command line: code --install-extension pushtoprodai.prod-cli
- From a VSIX: download the
.vsix from Releases and run code --install-extension prod-cli-<version>.vsix
Requirements
The prod CLI (macOS/Linux; Windows via WSL2):
brew install pushtoprodai/tap/prod
# or:
curl -fsSL https://raw.githubusercontent.com/PushtoProdAI/prod-cli/main/scripts/install.sh | sh
An LLM provider — prod parses your intent with an LLM using your own key. It checks OPENAI_API_KEY, then ANTHROPIC_API_KEY, and falls back to a local Ollama if neither is set.
Your platform credentials — prod deploys with your accounts (a Fly token, AWS credentials, vercel login, …). There is no prod account.
Run Prod: Doctor (or prod doctor in a terminal) to verify your setup.
Commands
| Command |
What it does |
Prod: Deploy… |
Describe a deploy in plain English; runs prod run "<prompt>" in the terminal |
Prod: Deploy (Dry Run)… |
Preview the plan and estimated cost without deploying |
Prod: Deploy to Platform… |
Pick a platform (Fly.io, Render, Vercel, Netlify, Heroku, AWS App Runner, Cloud Run, Azure Container Apps, Cloudflare Pages, Modal) |
Prod: Rollback… / Prod: Destroy… |
Pick a deployment; confirm in VS Code, then again in the terminal |
Prod: Show Deployments |
Focus and refresh the Deployments view |
Prod: Open Deployed App… / Open Platform Console… |
Jump to a deployment's live URL or dashboard |
Prod: Tail Logs… |
Stream a deployment's logs in the terminal |
Prod: New Project from Template… |
Scaffold a deployable starter project |
Prod: Doctor |
Check prerequisites (LLM reachable? Docker available?) |
Prod: Open Terminal |
Open prod's interactive TUI |
Extension Settings
| Setting |
Default |
Description |
prod.cliPath |
prod |
Path to the prod CLI executable. Machine-scoped: it can only be set in your user settings — workspace settings are ignored so a repo can never redirect the extension to an arbitrary executable. |
How it works
Reads are JSON (prod ls --json); anything that changes your infrastructure runs in a visible terminal so prod's own plan-approval and confirmation flow is exactly what you see and answer. The extension keeps a single reusable prod terminal.
Security
This extension launches a CLI, so it is deliberately conservative:
- It never passes
--yes or --delete-data; every mutating action goes through prod's own confirmation in the terminal.
prod.cliPath cannot be set by a workspace (see above), and the extension is disabled in untrusted (Restricted Mode) windows.
- Deploy records read from the CLI are validated before use: control characters are stripped, flag-like names are rejected, and "Open Live URL" only opens
http(s) links.
Found a security issue? Please report it privately via GitHub security advisories rather than a public issue.
Known limitations
- Rollback and destroy target the most recent deployment on a platform (this mirrors the CLI's natural-language interface).
- Windows requires WSL2 (a CLI constraint).
- The extension does not run in untrusted workspaces — trust the folder to use it.
Development
npm install
npm run watch # or press F5 in VS Code to launch the Extension Development Host
npm test # integration tests in a downloaded VS Code
npx @vscode/vsce package # build the .vsix
License
MIT — see LICENSE. The prod CLI is developed at PushtoProdAI/prod-cli.
| |