New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

spawner-cli

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spawner-cli

Spawner CLI and MCP server: preview environments from a worktree, on your own server

Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
575
-36.39%
Maintainers
1
Weekly downloads
 
Created
Source

spawner-cli

The command line and MCP server of Spawner: preview environments for every branch, on your own server. Developers and coding agents create, update and delete environments from a worktree (uncommitted changes included), run commands in them and read their logs.

npm install -g spawner-cli
spawner login https://spawner.preview.example.com   # enter the code it shows in the dashboard
cd my-project && spawner init                        # .spawner/, and the instructions for coding agents
spawner up --wait                                    # the environment of the current branch
spawner exec feat-login db -- psql -U app -c "select count(*) from users"
spawner logs feat-login api --errors
spawner share feat-login                             # a link for someone without an account
spawner down feat-login

Every command has a --json output and stable exit codes. For agents that prefer tools, spawner mcp is an MCP server with the same operations:

{ "mcpServers": { "spawner": { "command": "spawner", "args": ["mcp"] } } }

It needs Node.js 20 or later, and a Spawner server: install one with a single command. Every server also serves its own CLI at /api/v1/cli/spawner.

Commands, JSON outputs and exit codes: docs/cli.md.

License: Apache-2.0.

Keywords

preview

FAQs

Package last updated on 08 Oct 2026

Related posts