Publish from your computer
Install the CLI, connect your account with a click, and publish your app without going through the browser — or let your AI do it for you.
1. Install pinfra
Mac / Linux
Windows (PowerShell)
Check that it installed:
Prefer to check before running it? The installer is short — read it before you run it, or download the binary and verify its checksum by hand. See the agent guide, with step-by-step manual install →
2. Connect your computer
Run this command: it opens your browser so you can confirm with your account in one click. No key to copy by hand.
You'll see a short code in the terminal and in the browser — check that they match before confirming.
3. Publish your app
From your project's folder, run:
The first time it asks where to publish; after that it already knows. To skip every prompt (scripts, CI), use --yes.
What can be published today
Published apps run on Next.js today. If your project uses a different stack, it isn't supported yet.
Connect your AI
If you work with an AI agent on your computer (Claude Code, Cursor, or another), give it this block so it installs the CLI and publishes for you.
Copy this to your AI
Paste it as-is into your AI agent. It tells the agent to pause and ask you to confirm in the browser before continuing.
Necesito que publiques esta aplicación en pinfra. 1. Instalá el CLI si todavía no está instalado: curl -fsSL https://pinfra.app/install | sh (Mac/Linux) irm https://pinfra.app/install.ps1 | iex (Windows, PowerShell) 2. Conectá esta computadora con mi cuenta: pinfra login Esto abre MI navegador para que yo confirme con un click. Pausá acá y avisame que tengo que confirmar en el navegador — no sigas hasta que te diga que ya confirmé. 3. Una vez conectado, publicá este proyecto sin volver a preguntarme nada: pinfra publish --yes Contame la dirección de la aplicación cuando termine.
Give pinfra's tools to your AI (MCP)
With this, your local AI gets its own tools to list, publish, and check the status of your apps, instead of going through the terminal.
Claude Code
If you already ran pinfra login, this is all you need in your .mcp.json or ~/.claude.json:
{
"mcpServers": {
"pinfra": {
"command": "pinfra-mcp"
}
}
}Generic MCP client
For CI, a headless box, or any other MCP client: the same shape, with the key set explicitly.
{
"mcpServers": {
"pinfra": {
"command": "pinfra-mcp",
"env": {
"PINFRA_MCP_TOKEN": "pinfra_pat_...",
"PINFRA_MCP_BASE_URL": "https://platform.pinfra.app"
}
}
}
}⚠ If you set PINFRA_MCP_TOKEN by hand in a project file, don't commit it — add it to your .gitignore.
Are you an AI agent reading this?
There's a version written for you, shorter and with no filler.
See the agent guide (/cli/ia.md) →