Skip to content

feat: add service-tokens command#1080

Draft
davlgd wants to merge 1 commit intomasterfrom
davlgd-service-tokens
Draft

feat: add service-tokens command#1080
davlgd wants to merge 1 commit intomasterfrom
davlgd-service-tokens

Conversation

@davlgd
Copy link
Copy Markdown
Contributor

@davlgd davlgd commented Apr 3, 2026

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) tokens command

You'll find draft Service Tokens documentation here.

The most important changes are:

New Service Tokens Command Suite:

  • Added a new top-level command service-tokens with 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-tokens command 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-tokens command (src/commands/README.md).

@davlgd davlgd requested a review from a team as a code owner April 3, 2026 09:49
@davlgd davlgd marked this pull request as draft April 3, 2026 09:49
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

🔎 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-tokens

You can also run it from your local repository:

./scripts/preview.js update davlgd-service-tokens
OS SHA256 checksum
🐧 linux 49c6b1ed1178979a3ee459af8269a4245f92ef670246505ff491aa170d43da2e
🍏 macos b8db3b5713664b5cb16a98119c5d84232f9b4a687bfe117b8a6bd20bbeeeb181

This preview will be deleted once this PR is closed.

@davlgd davlgd force-pushed the davlgd-service-tokens branch from f8423d2 to 8a511d6 Compare April 3, 2026 09:59
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.

1 participant