Skip to content

[Nitro CLI] Update --api-key description to mention it accepts PAT as well - #9891

Merged
tobias-tengler merged 1 commit into
mainfrom
tte/update-api-key-cli-option-description
Jun 10, 2026
Merged

tobias-tengler merged 1 commit into
mainfrom
tte/update-api-key-cli-option-description

Conversation

@tobias-tengler

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 10, 2026 15:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 OptionalApiKeyOption description to mention PAT support.
  • Updated expected --help output 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]
@tobias-tengler
tobias-tengler merged commit 457c05d into main Jun 10, 2026
138 of 140 checks passed
@tobias-tengler
tobias-tengler deleted the tte/update-api-key-cli-option-description branch June 10, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants