github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/docs/cli/cozy-stack_instances_token-oauth.md (about) 1 ## cozy-stack instances token-oauth 2 3 Generate a new OAuth access token 4 5 ``` 6 cozy-stack instances token-oauth <domain> <clientid> <scopes> [flags] 7 ``` 8 9 ### Examples 10 11 ``` 12 $ cozy-stack instances token-oauth cozy.localhost:8080 727e677187a51d14ccd59cc0bd000a1d io.cozy.files io.cozy.jobs:POST:sendmail:worker 13 ``` 14 15 ### Options 16 17 ``` 18 --expire duration Make the token expires in this amount of time, as a duration string, e.g. "1h" 19 -h, --help help for token-oauth 20 ``` 21 22 ### Options inherited from parent commands 23 24 ``` 25 --admin-host string administration server host (default "localhost") 26 --admin-port int administration server port (default 6060) 27 -c, --config string configuration file (default "$HOME/.cozy.yaml") 28 --host string server host (default "localhost") 29 -p, --port int server port (default 8080) 30 ``` 31 32 ### SEE ALSO 33 34 * [cozy-stack instances](cozy-stack_instances.md) - Manage instances of a stack 35