Question on hydra CLI and client credential flow. ...
# talk-hydra
h
Question on hydra CLI and client credential flow. I installed Hydra CLI 2.0.3, and am getting the following error when I try to run
hydra token client
https://www.ory.sh/docs/hydra/cli/hydra-token-client
Copy code
Error: unknown command "token" for "hydra"
token
isn’t listed as one of the available hydra commands when I run
hydra help
. Did I miss installing something?
The only commands available via
hydra help
are
Copy code
Run and manage Ory Hydra

Usage:
  hydra [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  create      Create resources
  delete      Delete resources
  get         Get resources
  help        Help about any command
  import      Import resources
  introspect  Introspect resources
  janitor     This command cleans up stale database rows.
  list        List resources
  migrate     Various migration helpers
  perform     Perform OAuth 2.0 Flows
  revoke      Revoke resources
  serve       Parent command for starting public and administrative HTTP/2 APIs
  update      Update resources
  version     Display this binary's version, build time and git hash of this build

Flags:
  -h, --help   help for hydra
I looked at slack/github history but didn’t find anything. Anyone know how to get access to the other hydra commands such as
hydra token client
? https://www.ory.sh/docs/hydra/cli/hydra-token-client
It looks like the CLI reference documentation is out of date. I was able to get the OAuth2 commands I needed:
Copy code
ory perform client-credentials --client-id=$client_id --client-secret=$client_secret --project $project_id

ory introspect token $access_token --project $project_id
Instead of following which are in docs but don’t seem to exist anymore:
Copy code
hydra token client ...

hydra token introspect ...
In short, docs at https://www.ory.sh/docs/hydra/cli/hydra-token-client seem out of date.