Linux command
ak 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start the server
ak server
Run database migrations
ak migrate
Create a superuser
ak createsuperuser
Export configuration
ak export_blueprint
Import a blueprint
ak import_blueprint [blueprint.yaml]
Generate a recovery key
ak create_recovery_key [username]
Show version
ak version
Run a worker process
ak worker
说明
ak is the command-line interface for authentik, an open-source identity provider. It manages the authentik server, workers, database operations, and configuration import/export. The server command starts the web interface and API server. Background tasks like email sending and LDAP synchronization require a worker process running separately. Blueprints provide declarative configuration management. Export configurations with export_blueprint for version control or migration, and apply them with import_blueprint. For account recovery when users are locked out, create_recovery_key generates a time-limited recovery URL. This requires access to the server command line. authentik supports various authentication protocols including SAML, OAuth2/OIDC, LDAP, SCIM, and proxy authentication for applications that don't support SSO natively.
参数
- --bind _address_
- Address for server to listen on.
- --help
- Display help information.
FAQ
What is the ak command used for?
ak is the command-line interface for authentik, an open-source identity provider. It manages the authentik server, workers, database operations, and configuration import/export. The server command starts the web interface and API server. Background tasks like email sending and LDAP synchronization require a worker process running separately. Blueprints provide declarative configuration management. Export configurations with export_blueprint for version control or migration, and apply them with import_blueprint. For account recovery when users are locked out, create_recovery_key generates a time-limited recovery URL. This requires access to the server command line. authentik supports various authentication protocols including SAML, OAuth2/OIDC, LDAP, SCIM, and proxy authentication for applications that don't support SSO natively.
How do I run a basic ak example?
Run `ak server` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --bind _address_ do in ak?
Address for server to listen on.