Overhault Nitro CLI docs#9643
Merged
tobias-tengler merged 5 commits intomainfrom May 6, 2026
Merged
Conversation
292a14f to
b6598e6
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR restructures and expands the Nitro CLI documentation by replacing the older cli-commands/* docs set with a new cli/* command reference set, updating the docs navigation accordingly, and making a small CLI/runtime change to nitro launch so it opens the correct Nitro UI URL for self-hosted/dedicated sessions (with accompanying tests).
Changes:
- Added new Nitro CLI command documentation pages under
website/src/docs/nitro/cli/*(api, schema, client, fusion, openapi, etc.) and removed the legacywebsite/src/docs/nitro/cli-commands/*pages. - Updated
website/src/docs/docs.jsonto reflect the new CLI documentation structure. - Updated
nitro launchto resolve the target URL from the active session and introduced anIBrowserLauncherabstraction with tests.
Reviewed changes
Copilot reviewed 41 out of 41 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| website/src/docs/nitro/cli/workspace.md | New workspace command documentation page. |
| website/src/docs/nitro/cli/stage.md | New stage command documentation page. |
| website/src/docs/nitro/cli/session.md | New session/auth-related command documentation page. |
| website/src/docs/nitro/cli/schema.md | New schema command documentation page. |
| website/src/docs/nitro/cli/pat.md | New personal access token command documentation page. |
| website/src/docs/nitro/cli/openapi.md | New OpenAPI collection command documentation page. |
| website/src/docs/nitro/cli/mcp.md | New MCP feature collection command documentation page. |
| website/src/docs/nitro/cli/installation.md | New installation documentation page (dotnet tool/npm/brew/binaries). |
| website/src/docs/nitro/cli/index.md | Removes the old CLI intro page content (deleted). |
| website/src/docs/nitro/cli/global-options.md | Rewrites/clarifies global options documentation (help/api-key/output/cloud-url). |
| website/src/docs/nitro/cli/fusion.md | New Fusion CLI documentation page (includes publish multi-step flow). |
| website/src/docs/nitro/cli/environment.md | New environment CLI documentation page. |
| website/src/docs/nitro/cli/client.md | New client registry CLI documentation page. |
| website/src/docs/nitro/cli/api.md | New API management CLI documentation page. |
| website/src/docs/nitro/cli/api-key.md | New API key management CLI documentation page. |
| website/src/docs/nitro/cli/automation.md | Removes legacy automation doc page (deleted). |
| website/src/docs/nitro/cli/authentication.md | Removes legacy authentication doc page (deleted). |
| website/src/docs/nitro/cli-commands/workspace.md | Removes legacy workspace command doc page (deleted). |
| website/src/docs/nitro/cli-commands/stage.md | Removes legacy stage command doc page (deleted). |
| website/src/docs/nitro/cli-commands/schema.md | Removes legacy schema command doc page (deleted). |
| website/src/docs/nitro/cli-commands/pat.md | Removes legacy PAT command doc page (deleted). |
| website/src/docs/nitro/cli-commands/logout.md | Removes legacy logout command doc page (deleted). |
| website/src/docs/nitro/cli-commands/login.md | Removes legacy login command doc page (deleted). |
| website/src/docs/nitro/cli-commands/launch.md | Removes legacy launch command doc page (deleted). |
| website/src/docs/nitro/cli-commands/fusion-configuration.md | Removes legacy fusion-configuration command doc page (deleted). |
| website/src/docs/nitro/cli-commands/environment.md | Removes legacy environment command doc page (deleted). |
| website/src/docs/nitro/cli-commands/client.md | Removes legacy client command doc page (deleted). |
| website/src/docs/nitro/cli-commands/api.md | Removes legacy api command doc page (deleted). |
| website/src/docs/nitro/cli-commands/api-key.md | Removes legacy api-key command doc page (deleted). |
| website/src/docs/docs.json | Updates docs navigation to point to new nitro/cli/* pages (but still references removed cli-commands and a missing mock page). |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Session/LaunchCommandTests.cs | Adds coverage for nitro launch URL resolution behavior. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/CommandTestBase.cs | Adds IBrowserLauncher mock registration to the test DI container. |
| src/Nitro/CommandLine/src/CommandLine/Options/SchemaFileOption.cs | Switches schema file env var usage to shared constant. |
| src/Nitro/CommandLine/src/CommandLine/Options/ExtensionFileOption.cs | Switches schema extension env var usage to shared constant. |
| src/Nitro/CommandLine/src/CommandLine/Options/EnvironmentVariables.cs | Adds missing env var constants for schema file / schema extension file. |
| src/Nitro/CommandLine/src/CommandLine/Options/BaseSchemaFileOption.cs | Switches base schema file env var usage to shared constant. |
| src/Nitro/CommandLine/src/CommandLine/Helpers/SystemBrowserLauncher.cs | Adds system browser launcher implementation for DI. |
| src/Nitro/CommandLine/src/CommandLine/Helpers/IBrowserLauncher.cs | Adds DI abstraction for opening URLs (testable browser launching). |
| src/Nitro/CommandLine/src/CommandLine/Helpers/Constants.cs | Removes unused default timeout constant; keeps Nitro/API URLs. |
| src/Nitro/CommandLine/src/CommandLine/Extensions/ServiceCollectionExtensions.cs | Registers IBrowserLauncher implementation in the CLI DI container. |
| src/Nitro/CommandLine/src/CommandLine/Commands/Launch/LaunchCommand.cs | Updates nitro launch to open either the default Nitro web URL or <api-url>/ui based on the active session (now using IBrowserLauncher). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a56f23e to
27f1699
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.