Draft
Conversation
|
🔎 A preview has been automatically published! If you created the alias to the preview script, you can run this command to download and install this preview: clever-preview update davlgd-service-tokensYou can also run it from your local repository: ./scripts/preview.js update davlgd-service-tokens
This preview will be deleted once this PR is closed. |
f8423d2 to
8a511d6
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.
This pull request introduces a new feature for managing organisation service tokens, enabling machine-to-machine authentication in the Clever Cloud CLI. It adds a new top-level command,
clever service-tokens, with subcommands to create, get, list, and revoke service tokens. The implementation includes comprehensive documentation, command definitions, and supporting model functions. I've build it according to existing (API)tokenscommandYou'll find draft Service Tokens documentation here.
The most important changes are:
New Service Tokens Command Suite:
Added a new top-level command
service-tokenswith subcommands for creating, retrieving, listing, and revoking organisation service tokens, including all necessary options and argument parsing (src/commands/service-tokens/service-tokens.command.js,src/commands/service-tokens/service-tokens.create.command.js,src/commands/service-tokens/service-tokens.get.command.js,src/commands/service-tokens/service-tokens.list.command.js,src/commands/service-tokens/service-tokens.revoke.command.js,src/commands/global.commands.js) [1] [2] [3] [4] [5] [6] [7].Implemented model functions for service token API interactions, including listing, retrieving, creating, deleting, and resolving tokens by name or ID (
src/models/service-token.js).Documentation Updates:
Added detailed documentation for the new
service-tokenscommand and its subcommands, including usage examples, arguments, and options (src/commands/service-tokens/service-tokens.docs.md,skills/clever-tools/references/full-documentation.md) [1] [2].Updated the main command reference to include the new
service-tokenscommand (src/commands/README.md).