Aspire restart

From platformplatform/PlatformPlatform · View interactive version

Aspire restart is an AI agent skill from the GitHub repository platformplatform/PlatformPlatform. Start or restart the .NET Aspire AppHost via the developer CLI. Always use this, never the developer CLI's `run` command, `aspire run`, or `aspire restart`.

How to use this skill

Skill file

Restart Aspire

dotnet run --project developer-cli -- restart

Use developer-cli exactly as written - do not expand to an absolute worktree path.

Stops any running Aspire AppHost and starts a fresh instance. Detached by default - the CLI returns immediately while Aspire keeps running.

Always use restart, even when nothing is running yet. It is a no-op when Aspire is not up, and the safe default in every other case. Never use the developer CLI's run command, aspire run, or aspire restart.

When to use

Port allocation

Fully automatic. On a fresh checkout the developer CLI bootstraps .workspace/port.txt: the root gets the default base port; worktrees scan a fixed list of candidates and pick the first one whose ports are all free. Once written, the file is the authoritative allocation for the lifetime of the checkout.

Output is fire-and-forget

The CLI prints Aspire is restarting on https://app.dev.localhost:<port> and exits before Aspire is fully ready.

Stopping Aspire

To stop without restarting, run dotnet run --project developer-cli -- stop. Rarely needed - prefer restart for everyday use.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.