Skip to content

Conversation

@kpfleming
Copy link
Contributor

DO NOT MERGE: This includes the changes from #1612, and will be rebased once that PR is merged.

Change summary

This PR adds the 'service version ...' commands as a replacement for the 'service-version ...' commands. The 'service-version ...' commands are still available as aliases, but will issue a deprecation warning when used (except when JSON output is requested).

This involved a number of changes:

  1. The existing 'pkg/commands/serviceversion' package content was moved to 'pkg/commands/service/version', and modified to work as expected in that location.
  2. An alias package was added in 'pkg/commands/alias/serviceversion'. This alias package uses struct embedding to avoid duplicating any of the code from the `pkg/commands/service/version' package. The alias commands are 'unlisted' and issue a deprecation warning when used.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

User Impact

New deprecation warning for the service-version ... commands.

This PR adds the 'service purge' command as a replacement for the
'purge' command. The 'purge' command is still available as an alias,
but will issue a deprecation warning when it is used.
@kpfleming kpfleming marked this pull request as ready for review January 12, 2026 21:45
@kpfleming kpfleming requested a review from a team as a code owner January 12, 2026 21:45
CHANGELOG.md Outdated
- feat(commands/ngwaf/rules): add support for CRUD operations for NGWAF rules ([#1605](https://github.com/fastly/cli/pull/1605))
- feat(compute/deploy): added the `--no-default-domain` flag to allow for the skipping of automatic domain creation when deploying a Compute service([#1610](https://github.com/fastly/cli/pull/1610))
- feat(commands/service/purge): Add 'service purge' command as replacement for 'purge', with an unlisted and deprecated alias of 'purge'. ([#1612](https://github.com/fastly/cli/pull/1612))
- feat(commands/service/version): Add 'service version ...' commands as replacements for 'service-version ...', with unlisted and deprecated aliases of 'service-version ...'. ([#XXX](https://github.com/fastly/cli/pull/XXX))
Copy link
Contributor

Choose a reason for hiding this comment

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

is there another PR for this or is XXXX supposed to be this one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

LOL... forgot to update it with the PR number. Will do that now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in b0cc5c4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants