Linux command
authelia 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Validate configuration file
authelia validate-config --config [config.yml]
Generate password hash
authelia crypto hash generate argon2
Generate random secret
authelia crypto rand --length [64]
Generate RSA keypair
authelia crypto pair rsa generate
Generate TOTP secret
authelia crypto totp generate --issuer [MyApp]
Hash a password interactively
authelia crypto hash generate argon2 --password
Show version
authelia --version
Run the server
authelia --config [/etc/authelia/config.yml]
说明
authelia is the CLI for Authelia, an open-source authentication and authorization server. It provides multi-factor authentication and single sign-on for applications behind a reverse proxy. The crypto commands generate secrets, password hashes, certificates, and TOTP configurations needed for Authelia setup. Use crypto hash generate argon2 to create password hashes for the user database. Configuration validation with validate-config checks YAML syntax and setting values before deployment. This catches common configuration errors. The storage commands manage the user database, including migrations between versions and encryption key rotation. Authelia stores user credentials, TOTP secrets, and session data. Authelia integrates with reverse proxies like Nginx, Traefik, and HAProxy to protect web applications with authentication portals and access policies.
参数
- --config, -c _path_
- Path to configuration file(s).
- --password
- Read password interactively.
- --length _n_
- Length for random generation.
- --issuer _name_
- TOTP issuer name.
- --algorithm _algo_
- Hashing or encryption algorithm.
- --help, -h
- Display help information.
- --version
- Display version information.
FAQ
What is the authelia command used for?
authelia is the CLI for Authelia, an open-source authentication and authorization server. It provides multi-factor authentication and single sign-on for applications behind a reverse proxy. The crypto commands generate secrets, password hashes, certificates, and TOTP configurations needed for Authelia setup. Use crypto hash generate argon2 to create password hashes for the user database. Configuration validation with validate-config checks YAML syntax and setting values before deployment. This catches common configuration errors. The storage commands manage the user database, including migrations between versions and encryption key rotation. Authelia stores user credentials, TOTP secrets, and session data. Authelia integrates with reverse proxies like Nginx, Traefik, and HAProxy to protect web applications with authentication portals and access policies.
How do I run a basic authelia example?
Run `authelia validate-config --config [config.yml]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --config, -c _path_ do in authelia?
Path to configuration file(s).