authelia storage user totp generate

authelia storage user totp generate

Generate a TOTP configuration for a user

Synopsis

Generate a TOTP configuration for a user.

This subcommand allows generating a new TOTP configuration for a user, and overwriting the existing configuration if applicable.

authelia storage user totp generate <username> [flags]

Examples

authelia storage user totp generate john
authelia storage user totp generate john --period 90
authelia storage user totp generate john --digits 8
authelia storage user totp generate john --algorithm SHA512
authelia storage user totp generate john --algorithm SHA512 --config config.yml
authelia storage user totp generate john --algorithm SHA512 --config config.yml --path john.png

Options

      --algorithm string   set the TOTP algorithm (default "SHA1")
      --digits uint        set the TOTP digits (default 6)
  -f, --force              forces the TOTP configuration to be generated regardless if it exists or not
  -h, --help               help for generate
      --issuer string      set the TOTP issuer (default "Authelia")
  -p, --path string        path to a file to create a PNG file with the QR code (optional)
      --period uint        set the TOTP period (default 30)
      --secret string      Optionally set the TOTP shared secret as base32 encoded bytes (no padding), it's recommended to not set this option unless you're restoring an TOTP config
      --secret-size uint   set the TOTP secret size (default 32)

Options inherited from parent commands

  -c, --config strings                         configuration files to load (default [configuration.yml])
      --encryption-key string                  the storage encryption key to use
      --mysql.database string                  the MySQL database name (default "authelia")
      --mysql.host string                      the MySQL hostname
      --mysql.password string                  the MySQL password
      --mysql.port int                         the MySQL port (default 3306)
      --mysql.username string                  the MySQL username (default "authelia")
      --postgres.database string               the PostgreSQL database name (default "authelia")
      --postgres.host string                   the PostgreSQL hostname
      --postgres.password string               the PostgreSQL password
      --postgres.port int                      the PostgreSQL port (default 5432)
      --postgres.schema string                 the PostgreSQL schema name (default "public")
      --postgres.ssl.certificate string        the PostgreSQL ssl certificate file location
      --postgres.ssl.key string                the PostgreSQL ssl key file location
      --postgres.ssl.mode string               the PostgreSQL ssl mode (default "disable")
      --postgres.ssl.root_certificate string   the PostgreSQL ssl root certificate file location
      --postgres.username string               the PostgreSQL username (default "authelia")
      --sqlite.path string                     the SQLite database path

SEE ALSO

Auto generated by spf13/cobra on 27-Jun-2022