skyway-cli

skyway-cli token serve

Serve SkyWay Auth Token by HTTP Server

Synopsis

Serve SkyWay Auth Token when send GET request to /token.

skyway-cli token serve [flags]

Options

      --app-id string       SkyWay App ID. This option can also be set by the skyway.app_id configuration or the SKYWAY_APP_ID environment variable.
      --expire int          Token expire time in seconds. This option can also be set by the skyway.token.expire configuration or the SKYWAY_TOKEN_EXPIRE environment variable. (default 3600)
  -h, --help                help for serve
  -p, --port int            HTTP Server Port (default 8080)
      --secret-key string   SkyWay Secret Key. This option can also be set by the skyway.secret_key configuration or the SKYWAY_SECRET_KEY environment variable.
      --tmpl string         Token template. This option can also be set by the skyway.token.tmpl configuration or the SKYWAY_TOKEN_TMPL environment variable.

Options inherited from parent commands

      --config string   config file (default is $HOME/.skyway-cli.yaml)

SEE ALSO

Auto generated by spf13/cobra on 8-Dec-2024