github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/docs/cli/cozy-stack_config_passwd.md (about)

     1  ## cozy-stack config passwd
     2  
     3  Generate an admin passphrase
     4  
     5  ### Synopsis
     6  
     7  
     8  cozy-stack config passwd generates a passphrase hash and save it to the
     9  specified file. If no file is specified, it is directly printed in standard
    10  output. This passphrase is the one used to authenticate accesses to the
    11  administration API.
    12  
    13  The environment variable 'COZY_ADMIN_PASSPHRASE' can be used to pass the
    14  passphrase if needed.
    15  
    16  
    17  ```
    18  cozy-stack config passwd <filepath> [flags]
    19  ```
    20  
    21  ### Examples
    22  
    23  ```
    24  $ cozy-stack config passwd ~/.cozy/cozy-admin-passphrase
    25  ```
    26  
    27  ### Options
    28  
    29  ```
    30    -h, --help   help for passwd
    31  ```
    32  
    33  ### Options inherited from parent commands
    34  
    35  ```
    36        --admin-host string   administration server host (default "localhost")
    37        --admin-port int      administration server port (default 6060)
    38    -c, --config string       configuration file (default "$HOME/.cozy.yaml")
    39        --host string         server host (default "localhost")
    40    -p, --port int            server port (default 8080)
    41  ```
    42  
    43  ### SEE ALSO
    44  
    45  * [cozy-stack config](cozy-stack_config.md)	 - Show and manage configuration elements
    46