Skip to content

[BUG] CLI has no subcommand to create/manage API tokens #179

@ElioNeto

Description

@ElioNeto

Description

The API supports Bearer authentication with ApiToken, but the CLI (apexstore-cli) has no subcommand to create, list, or revoke tokens. This makes the auth feature unusable from the command line.

Evidence

$ apexstore-cli --help
# No token/create/revoke subcommand available

Impact

  • API authentication cannot be set up without writing custom code
  • TokenManager is only accessible programmatically
  • Feature is gated behind code, making it effectively dead for ops

Proposed fix

Add a token subcommand group to the CLI:

  • apexstore-cli token create <name> <permissions...> — generates a token
  • apexstore-cli token list — lists all tokens
  • apexstore-cli token revoke <id> — deletes a token

Severity

Low — auth is not wired (see #178), so tokens can't be used anyway. But once auth is fixed, tokens must be manageable from CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions