Repository navigation
[Nitro CLI] Update --api-key description to mention it accepts PAT as well - #9891
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Nitro CLI help text to clarify that --api-key can be used with either an API key or a personal access token (PAT), and aligns the command help-output snapshot tests accordingly.
Changes:
- Updated
OptionalApiKeyOptiondescription to mention PAT support. - Updated expected
--helpoutput assertions across Nitro CLI command tests to match the new description.
Reviewed changes
Copilot reviewed 64 out of 64 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/Nitro/CommandLine/src/CommandLine/Options/OptionalApiKeyOption.cs | Updates the --api-key option description to include PAT usage. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Workspaces/ShowWorkspaceCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Workspaces/SetDefaultWorkspaceCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Workspaces/ListWorkspaceCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Workspaces/CurrentWorkspaceCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Workspaces/CreateWorkspaceCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Stages/ListStagesCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Stages/EditStagesCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Stages/DeleteStageCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Schemas/ValidateSchemaCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Schemas/UploadSchemaCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Schemas/PublishSchemaCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Schemas/DownloadSchemaCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/PersonalAccessTokens/RevokePersonalAccessTokenCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/PersonalAccessTokens/ListPersonalAccessTokenCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/PersonalAccessTokens/CreatePersonalAccessTokenCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/OpenApi/ValidateOpenApiCollectionCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/OpenApi/UploadOpenApiCollectionCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/OpenApi/PublishOpenApiCollectionCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/OpenApi/ListOpenApiCollectionCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/OpenApi/DeleteOpenApiCollectionCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/OpenApi/CreateOpenApiCollectionCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Mocks/UpdateMockCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Mocks/ListMockCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Mocks/CreateMockCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Mcp/ValidateMcpFeatureCollectionCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Mcp/UploadMcpFeatureCollectionCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Mcp/PublishMcpFeatureCollectionCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Mcp/ListMcpFeatureCollectionCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Mcp/DeleteMcpFeatureCollectionCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Mcp/CreateMcpFeatureCollectionCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Fusion/FusionValidateCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Fusion/FusionUploadCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Fusion/FusionSettingsSetCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Fusion/FusionPublishCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Fusion/FusionDownloadCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Fusion/FusionConfigurationPublishValidateCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Fusion/FusionConfigurationPublishStartCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Fusion/FusionConfigurationPublishCommitCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Fusion/FusionConfigurationPublishCancelCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Fusion/FusionConfigurationPublishBeginCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Fusion/FusionComposeCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Environments/ShowEnvironmentCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Environments/ListEnvironmentCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Environments/CreateEnvironmentCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/ValidateClientCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/UploadClientCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/UnpublishClientCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/ShowClientCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/PublishClientCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/ListClientVersionsCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/ListClientPublishedVersionsCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/ListClientCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/DownloadClientCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/DeleteClientCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Clients/CreateClientCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Apis/ShowApiCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Apis/SetApiSettingsCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Apis/ListApiCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Apis/DeleteApiCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Apis/CreateApiCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/ApiKeys/ListApiKeyCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/ApiKeys/DeleteApiKeyCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
| src/Nitro/CommandLine/test/CommandLine.Tests/Commands/ApiKeys/CreateApiKeyCommandTests.cs | Updates help snapshot to reflect new --api-key description. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
27
to
+29
| --configuration <configuration> The stage configuration. If not provided, an interactive selection will beshown. This input is a JSON array of stage configuration in the following format:[{"name":"stage1","displayName":"Stage 1","conditions":[{"afterStage":"stage2"}]},...] | ||
| --cloud-url <cloud-url> The URL of the Nitro backend (only needed for self-hosted or dedicated deployments) [env: NITRO_CLOUD_URL] | ||
| --api-key <api-key> The API key used for authentication [env: NITRO_API_KEY] | ||
| --api-key <api-key> The API key or PAT used for authentication [env: NITRO_API_KEY] |
This was referenced Jun 16, 2026
This was referenced Jun 24, 2026
This was referenced Aug 31, 2026
This was referenced Sep 8, 2026
This was referenced Sep 17, 2026
This was referenced Sep 28, 2026
This was referenced Oct 5, 2026
This was referenced Oct 19, 2026
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.