Skip to content

Cozy stack instances token oauth

cozy-stack instances token-oauth

Generate a new OAuth access token

cozy-stack instances token-oauth <domain> <clientid> <scopes> [flags]

Examples

$ cozy-stack instances token-oauth cozy.localhost:8080 727e677187a51d14ccd59cc0bd000a1d io.cozy.files io.cozy.jobs:POST:sendmail:worker

Options

      --expire duration   Make the token expires in this amount of time, as a duration string, e.g. "1h"
  -h, --help              help for token-oauth

Options inherited from parent commands

      --admin-host string   administration server host (default "localhost")
      --admin-port int      administration server port (default 6060)
  -c, --config string       configuration file (default "$HOME/.cozy.yaml")
      --host string         server host (default "localhost")
  -p, --port int            server port (default 8080)

SEE ALSO