github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/docs/cli/cozy-stack_instances_auth-mode.md (about) 1 ## cozy-stack instances auth-mode 2 3 Set instance auth-mode 4 5 ### Synopsis 6 7 Change the authentication mode for an instance. Two options are allowed: 8 - two_factor_mail 9 - basic 10 11 12 ``` 13 cozy-stack instances auth-mode [domain] [auth-mode] [flags] 14 ``` 15 16 ### Examples 17 18 ``` 19 $ cozy-stack instances auth-mode cozy.localhost:8080 two_factor_mail 20 ``` 21 22 ### Options 23 24 ``` 25 -h, --help help for auth-mode 26 ``` 27 28 ### Options inherited from parent commands 29 30 ``` 31 --admin-host string administration server host (default "localhost") 32 --admin-port int administration server port (default 6060) 33 -c, --config string configuration file (default "$HOME/.cozy.yaml") 34 --host string server host (default "localhost") 35 -p, --port int server port (default 8080) 36 ``` 37 38 ### SEE ALSO 39 40 * [cozy-stack instances](cozy-stack_instances.md) - Manage instances of a stack 41