Portstack DocsGitHub

CLI and troubleshooting

Run .\portstack.exe help from the installation folder. Inside a Portstack shell, use portstack directly. The default workspace is the executable’s directory. To use another workspace, set PORTSTACK_ROOT to its absolute path before opening the GUI, CLI or MCP client.

Which terminal should I use?

Use Terminal → Open interactive terminal for day-to-day work, tabbed sessions, interactive programs and scrollback. Portstack 0.5 supports Microsoft’s portable Windows Terminal. Install it once from Updates and tools or from the CLI. Its settings travel with the workspace. Workspace terminals start in www. Project terminals open in the checkout and prefer its pinned versions.

.\portstack.exe terminal install
.\portstack.exe terminal open
.\portstack.exe project terminal shop

The external launcher prefers the managed portable copy, then the Windows Terminal installed on the PC, then a separate Command Prompt. Portstack opens a cmd.exe shell inside that host with the portable tools on PATH. portstack shell opens the same workspace shell inside your existing terminal. Microsoft documents the settings folder and the .portable marker it uses. Windows Terminal portable mode

The embedded Terminal is convenient for quick commands. It keeps a working directory and displays the current 32-row screen. Enter submits a line and Ctrl+C interrupts the foreground command. Use the external terminal for programs that read individual keystrokes.

Everyday commands

Task Command
Install Node with npm and npx portstack add node
Inspect active versions and services portstack status
Check or update a runtime portstack check php or portstack update php
Start, stop or restart one server portstack start nginx, portstack stop nginx, portstack restart nginx
Inspect service logs or project output portstack log nginx or portstack project log shop
List shared sites and refresh their hostnames portstack site list and portstack site apply
Check or update an optional desktop tool portstack terminal check, portstack terminal update, portstack heidi check, portstack heidi update
Use tools in ordinary terminals portstack path add, then reopen your terminal
Remove the account PATH entry portstack path remove

Something didn’t start

Port already in use. Run portstack doctor and portstack ports to identify the listener. To move a stopped database, for example, run portstack port set postgres 55432 and start it again. Set project gateway and application ports in portstack.toml.

Wrong Node or PHP version. In Command Prompt use where node or where php to see which executable wins. Open a new workspace terminal after changing the active version. Use the project terminal when a checkout pins another version.

The agent sees an old drive letter. Run .\portstack.exe agents status from the current installation, repair or register the connection, then reopen the agent. Connect an agent.

A project exits immediately. Read portstack project log NAME, check its document root and startup command, and install the checkout’s dependencies in its project terminal. The preview shows the ports the application and gateway expect.

To build the manager from Rust source, follow the Windows x64 build instructions.