Interface en ligne de commande#
Canaille dispose de plusieurs commandes pour aider les administrateurs à gérer leurs données.
Generally, some configuration has to be loaded by Canaille.
This can be achieved by configuration loading method available, but most of the time a CANAILLE_CONFIG environment variable is used.
For the sake of readability, it is omitted in the following examples.
env CANAILLE_CONFIG=path/to/config.toml canaille ...
canaille config#
Manipule le fichier de configuration de Canaille.
Usage
canaille config [OPTIONS] COMMAND [ARGS]...
check#
Test des connexions réseau définies dans le fichier de configuration.
Tentative pour accéder à la base de données et le serveur SMTP avec les identifiants fournis.
Usage
canaille config check [OPTIONS]
dump#
Exporte le fichier de configuration au format TOML.
The configuration is exported to the file path passed by --path if set.
else it is displayed on the standard output.
Usage
canaille config dump [OPTIONS]
Options
- --path <path>#
Le chemin du fichier de configuration.
canaille run#
Lance un serveur de production Canaille avec Hypercorn.
Configuration is loaded from environment variables with CANAILLE_HYPERCORN_ prefix,
and can be overridden with command-line options.
Jetez un œil à la documentation d’Hypercorn pour savoir comment le configurer.
Usage
canaille run [OPTIONS]
Options
- --bind <bind>#
The TCP host/address to bind to.
- --insecure-bind <insecure_bind>#
The TCP host/address to bind to for insecure connections.
- --quic-bind <quic_bind>#
The UDP socket to bind for QUIC.
- --alpn-protocols <alpn_protocols>#
The ALPN protocols to advertise.
- --alt-svc-headers <alt_svc_headers>#
The alt-svc header values to advertise.
- --server-names <server_names>#
A comma separated list of server names.
- --access-log-format <ACCESS_LOG_FORMAT>#
The access log format.
- --accesslog <ACCESSLOG>#
The target for access log outputs.
- --backlog <BACKLOG>#
The maximum number of pending connections.
- --ca-certs <CA_CERTS>#
Path to the SSL CA certificate file.
- --certfile <CERTFILE>#
Path to the SSL certificate file.
- --ciphers <CIPHERS>#
The available ciphers for SSL connections.
- --debug <DEBUG>#
Enable debug mode.
- --dogstatsd-tags <DOGSTATSD_TAGS>#
Comma separated list of tags to be applied to all StatsD metrics.
- --errorlog <ERRORLOG>#
The target for error log outputs.
- --graceful-timeout <GRACEFUL_TIMEOUT>#
Time to wait for workers to finish current requests during graceful shutdown.
- --group <GROUP>#
The group id to switch to.
- --h11-max-incomplete-size <H11_MAX_INCOMPLETE_SIZE>#
The maximum size of the incomplete request/response body.
- --h11-pass-raw-headers <H11_PASS_RAW_HEADERS>#
Pass raw headers to the application.
- --h2-max-concurrent-streams <H2_MAX_CONCURRENT_STREAMS>#
The maximum number of concurrent streams per HTTP/2 connection.
- --h2-max-header-list-size <H2_MAX_HEADER_LIST_SIZE>#
The maximum size of the header list.
- --h2-max-inbound-frame-size <H2_MAX_INBOUND_FRAME_SIZE>#
The maximum size of an inbound HTTP/2 frame.
- --include-date-header <INCLUDE_DATE_HEADER>#
Include a date header in the response.
- --include-server-header <INCLUDE_SERVER_HEADER>#
Include a server header in the response.
- --keep-alive-max-requests <KEEP_ALIVE_MAX_REQUESTS>#
The maximum number of requests per keep-alive connection.
- --keep-alive-timeout <KEEP_ALIVE_TIMEOUT>#
Seconds to wait before closing keep-alive connections.
- --keyfile <KEYFILE>#
Path to the SSL key file.
- --keyfile-password <KEYFILE_PASSWORD>#
The password for the SSL key file.
- --logconfig <LOGCONFIG>#
The log config file path.
- --logconfig-dict <LOGCONFIG_DICT>#
The log config dictionary.
- --loglevel <LOGLEVEL>#
The (error) log level.
- --max-app-queue-size <MAX_APP_QUEUE_SIZE>#
The maximum size of the application task queue.
- --max-requests <MAX_REQUESTS>#
The maximum number of requests a worker can handle before restarting.
- --max-requests-jitter <MAX_REQUESTS_JITTER>#
The maximum jitter to add to the max_requests setting.
- --pid-path <PID_PATH>#
Path to write the process id.
- --proxy-mode <PROXY_MODE>#
Proxy headers handling mode: None (no proxy),
legacy(X-Forwarded-*), ormodern(RFC 7239 Forwarded).
- --proxy-trusted-hops <PROXY_TRUSTED_HOPS>#
Number of trusted proxy hops when PROXY_MODE is set.
- --read-timeout <READ_TIMEOUT>#
The timeout for reading from connections.
- --root-path <ROOT_PATH>#
The ASGI root_path variable.
- --shutdown-timeout <SHUTDOWN_TIMEOUT>#
Time to wait for workers to shutdown during graceful shutdown.
- --ssl-handshake-timeout <SSL_HANDSHAKE_TIMEOUT>#
The SSL handshake timeout.
- --startup-timeout <STARTUP_TIMEOUT>#
Time to wait for workers to start during startup.
- --statsd-host <STATSD_HOST>#
The host:port of the statsd server.
- --statsd-prefix <STATSD_PREFIX>#
Prefix for statsd messages.
- --umask <UMASK>#
The umask to set for the process.
- --use-reloader <USE_RELOADER>#
Enable automatic reloading on code changes.
- --user <USER>#
The user id to switch to.
- --verify-flags <VERIFY_FLAGS>#
The SSL verify flags.
- --verify-mode <VERIFY_MODE>#
The SSL verify mode.
- --websocket-max-message-size <WEBSOCKET_MAX_MESSAGE_SIZE>#
The maximum size of a WebSocket message.
- --websocket-ping-interval <WEBSOCKET_PING_INTERVAL>#
If set the time in seconds between pings.
- --worker-class <WORKER_CLASS>#
The type of worker to use.
- --workers <WORKERS>#
The number of worker processes.
- --wsgi-max-body-size <WSGI_MAX_BODY_SIZE>#
The maximum size of WSGI request body.
canaille jwk#
Gestion des JSON Web Keys.
Usage
canaille jwk [OPTIONS] COMMAND [ARGS]...
create#
Création d’une JSON Web Key.
Usage
canaille jwk create [OPTIONS] COMMAND [ARGS]...
ec#
Create a EC JSON Web Key.
Usage
canaille jwk create ec [OPTIONS]
Options
- --crv <crv>#
La clé CRV
- --format <output_format>#
Output format
- Options:
OutputFormat.JSON | OutputFormat.TOML
oct#
Create a Oct JSON Web Key.
Usage
canaille jwk create oct [OPTIONS]
Options
- --size <size>#
La taille de clé
- --format <output_format>#
Output format
- Options:
OutputFormat.JSON | OutputFormat.TOML
okp#
Create a OKP JSON Web Key.
Usage
canaille jwk create okp [OPTIONS]
Options
- --crv <crv>#
La clé CRV
- --format <output_format>#
Output format
- Options:
OutputFormat.JSON | OutputFormat.TOML
rsa#
Create a RSA JSON Web Key.
Usage
canaille jwk create rsa [OPTIONS]
Options
- --size <size>#
La taille de clé
- --format <output_format>#
Output format
- Options:
OutputFormat.JSON | OutputFormat.TOML
export#
Export the public part of the server signing keys.
Without argument, every asymmetric verification key is exported, active and inactive by default so tokens signed during a key rotation window can still be verified. A single key can be selected by passing its KID.
The json format (default) emits the key metadata: kid, signing
algorithm, usage and key type. The pem format emits the raw public keys
in PEM (SubjectPublicKeyInfo) format, suitable for external JWT validators
that verify Canaille-issued tokens locally without fetching the JWKS
endpoint.
Symmetric keys have no public part and are skipped; the private key material is never emitted.
Usage
canaille jwk export [OPTIONS] [KID]
Options
- --format <output_format>#
Output the key metadata as JSON or the raw public keys as PEM.
- Options:
json | pem
- --active-only#
Only export the active keys instead of the active and inactive ones.
Paramètres
- KID#
Optional argument
canaille jwt#
Client registration management.
Usage
canaille jwt [OPTIONS] COMMAND [ARGS]...
management#
Generate a JWT token for client management.
Creates a JWT token that can be used to manage the existing OAuth2 client CLIENT_ID.
Usage
canaille jwt management [OPTIONS] CLIENT_ID
Options
- --lifetime <lifetime>#
Token lifetime in seconds
- --json#
Output the token and its context as JSON
Paramètres
- CLIENT_ID#
Paramètre obligatoire
registration#
Generate a JWT token for dynamic client registration.
Creates a JWT token that can be used to register a new OAuth2 client.
The client is registered under --client-id, or under a random
identifier when it is omitted.
Usage
canaille jwt registration [OPTIONS]
Options
- --client-id <client_id>#
The identifier the client will be registered under
- --lifetime <lifetime>#
Token lifetime in seconds
- --json#
Output the token and its context as JSON
canaille clean#
Remove expired tokens and codes, and the consents and codes of deleted users.
Usage
canaille clean [OPTIONS]
canaille dump#
Retourne tous les objets disponibles.
If no argument is passed, all model instances are dumped. The dump holds the client secrets and the one-time passcode secrets in clear text.
Usage
canaille dump [OPTIONS] [MODEL]...
Paramètres
- MODEL#
Arguments optionnels
canaille restore#
Restore previously dumped models.
The dumped models should be passed by the standard input.
cat dump.json | canaille restore
Usage
canaille restore [OPTIONS]
canaille secrets#
Manage the secrets stored in the database.
Usage
canaille secrets [OPTIONS] COMMAND [ARGS]...
reencrypt#
Encrypt the stored secrets with the current SECRET_KEY.
Run it after changing SECRET_KEY, and before removing the previous key from SECRET_KEY_FALLBACKS. Secrets stored in clear text are encrypted too.
Usage
canaille secrets reencrypt [OPTIONS]
canaille install#
Installe les éléments de Canaille issus de la configuration.
For instance, depending on the configuration and the backend, this can install the LDAP schemas or initialize the SQL database.
Usage
canaille install [OPTIONS]
canaille populate#
Remplit la base de données avec des données générées aléatoirement.
Usage
canaille populate [OPTIONS] COMMAND [ARGS]...
Options
- --nb <nb>#
Nombre d’éléments à créer
groups#
Remplit la base de données avec des groupes générés aléatoirement.
Usage
canaille populate groups [OPTIONS]
Options
- --nb-users-max <nb_users_max>#
Le nombre maximum d’utilisateurs qui seront aléatoirement affectés dans le groupe
users#
Remplit la base de données avec des utilisateurs générés aléatoirement.
Usage
canaille populate users [OPTIONS]
canaille get#
Usage
canaille get [OPTIONS] COMMAND [ARGS]...
client#
Recherche les clients et affiche les modèles correspondants en JSON.
Usage
canaille get client [OPTIONS]
Options
- --ignore-errors#
Suppress error messages and return silently on failure.
- --id <id>#
- --created <created>#
- --last-modified <last_modified>#
- --description <description>#
- --owners <owners>#
- --audience <audience>#
- --client-id <client_id>#
- --client-secret <client_secret>#
- --client-id-issued-at <client_id_issued_at>#
- --client-secret-expires-at <client_secret_expires_at>#
- --redirect-uris <redirect_uris>#
- --token-endpoint-auth-method <token_endpoint_auth_method>#
- --token-endpoint-auth-signing-alg <token_endpoint_auth_signing_alg>#
- --grant-types <grant_types>#
- --response-types <response_types>#
- --client-name <client_name>#
- --client-uri <client_uri>#
- --logo-uri <logo_uri>#
- --scope <scope>#
- --contacts <contacts>#
- --tos-uri <tos_uri>#
- --policy-uri <policy_uri>#
- --jwks-uri <jwks_uri>#
- --jwks <jwks>#
- --sector-identifier-uri <sector_identifier_uri>#
- --subject-type <subject_type>#
- --software-id <software_id>#
- --software-version <software_version>#
- --post-logout-redirect-uris <post_logout_redirect_uris>#
- --application-type <application_type>#
- --id-token-signed-response-alg <id_token_signed_response_alg>#
- --id-token-encrypted-response-alg <id_token_encrypted_response_alg>#
- --id-token-encrypted-response-enc <id_token_encrypted_response_enc>#
- --userinfo-signed-response-alg <userinfo_signed_response_alg>#
- --userinfo-encrypted-response-alg <userinfo_encrypted_response_alg>#
- --userinfo-encrypted-response-enc <userinfo_encrypted_response_enc>#
- --default-max-age <default_max_age>#
- --require-auth-time <require_auth_time>#
- --default-acr-values <default_acr_values>#
- --initiate-login-uri <initiate_login_uri>#
- --request-object-signing-alg <request_object_signing_alg>#
- --request-object-encryption-alg <request_object_encryption_alg>#
- --request-object-encryption-enc <request_object_encryption_enc>#
- --request-uris <request_uris>#
- --require-signed-request-object <require_signed_request_object>#
- --backchannel-logout-uri <backchannel_logout_uri>#
- --backchannel-logout-session-required <backchannel_logout_session_required>#
consent#
Recherche les consentements et affiche les modèles correspondants en JSON.
Usage
canaille get consent [OPTIONS]
Options
- --ignore-errors#
Suppress error messages and return silently on failure.
- --id <id>#
- --created <created>#
- --last-modified <last_modified>#
- --consent-id <consent_id>#
- --subject <subject>#
- --client <client>#
- --scope <scope>#
- --issue-date <issue_date>#
- --revokation-date <revokation_date>#
group#
Recherche les groupes et affiche les modèles correspondants en JSON.
Usage
canaille get group [OPTIONS]
Options
- --ignore-errors#
Suppress error messages and return silently on failure.
- --id <id>#
- --created <created>#
- --last-modified <last_modified>#
- --display-name <display_name>#
- --members <members>#
- --owners <owners>#
- --description <description>#
token#
Recherche les jetons et affiche les modèles correspondants en JSON.
Usage
canaille get token [OPTIONS]
Options
- --ignore-errors#
Suppress error messages and return silently on failure.
- --id <id>#
- --created <created>#
- --last-modified <last_modified>#
- --token-id <token_id>#
- --access-token <access_token>#
- --client <client>#
- --subject <subject>#
- --type <type>#
- --refresh-token <refresh_token>#
- --scope <scope>#
- --issue-date <issue_date>#
- --lifetime <lifetime>#
- --revokation-date <revokation_date>#
- --audience <audience>#
- --sid <sid>#
user#
Recherche les utilisateurs et affiche les modèles correspondants en JSON.
Usage
canaille get user [OPTIONS]
Options
- --ignore-errors#
Suppress error messages and return silently on failure.
- --id <id>#
- --created <created>#
- --last-modified <last_modified>#
- --user-name <user_name>#
- --password-failure-timestamps <password_failure_timestamps>#
- --password <password>#
- --password-last-update <password_last_update>#
- --preferred-language <preferred_language>#
- --family-name <family_name>#
- --given-name <given_name>#
- --formatted-name <formatted_name>#
- --display-name <display_name>#
- --emails <emails>#
- --phone-numbers <phone_numbers>#
- --formatted-address <formatted_address>#
- --street <street>#
- --postal-code <postal_code>#
- --locality <locality>#
- --region <region>#
- --photo <photo>#
- --profile-url <profile_url>#
- --title <title>#
- --organization <organization>#
- --employee-number <employee_number>#
- --department <department>#
- --groups <groups>#
- --lock-date <lock_date>#
- --last-otp-login <last_otp_login>#
- --secret-token <secret_token>#
- --hotp-counter <hotp_counter>#
- --one-time-password <one_time_password>#
- --one-time-password-emission-date <one_time_password_emission_date>#
- --webauthn-credentials <webauthn_credentials>#
webauthncredential#
Search for webauthncredentials and display the matching models as JSON.
Usage
canaille get webauthncredential [OPTIONS]
Options
- --ignore-errors#
Suppress error messages and return silently on failure.
- --id <id>#
- --created <created>#
- --last-modified <last_modified>#
- --credential-id <credential_id>#
- --public-key <public_key>#
- --sign-count <sign_count>#
- --aaguid <aaguid>#
- --transports <transports>#
- --name <name>#
- --created-at <created_at>#
- --last-used-at <last_used_at>#
- --user <user>#
canaille set#
Usage
canaille set [OPTIONS] COMMAND [ARGS]...
client#
Mise-à-jour du client et affiche le modèle modifié au format JSON sur la sortie standard.
IDENTIFIER devrait être un identifiant client ou client_id
Usage
canaille set client [OPTIONS] IDENTIFIER
Options
- --quiet#
Suppress output to standard output.
- --ignore-errors#
Suppress errors and exit silently if the model doesn’t exist or update fails.
- --created <created>#
- --last-modified <last_modified>#
- --description <description>#
- --owners <owners>#
- --audience <audience>#
- --client-id <client_id>#
- --client-secret <client_secret>#
- --client-id-issued-at <client_id_issued_at>#
- --client-secret-expires-at <client_secret_expires_at>#
- --redirect-uris <redirect_uris>#
- --token-endpoint-auth-method <token_endpoint_auth_method>#
- --token-endpoint-auth-signing-alg <token_endpoint_auth_signing_alg>#
- --grant-types <grant_types>#
- --response-types <response_types>#
- --client-name <client_name>#
- --client-uri <client_uri>#
- --logo-uri <logo_uri>#
- --scope <scope>#
- --contacts <contacts>#
- --tos-uri <tos_uri>#
- --policy-uri <policy_uri>#
- --jwks-uri <jwks_uri>#
- --jwks <jwks>#
- --sector-identifier-uri <sector_identifier_uri>#
- --subject-type <subject_type>#
- --software-id <software_id>#
- --software-version <software_version>#
- --post-logout-redirect-uris <post_logout_redirect_uris>#
- --application-type <application_type>#
- --id-token-signed-response-alg <id_token_signed_response_alg>#
- --id-token-encrypted-response-alg <id_token_encrypted_response_alg>#
- --id-token-encrypted-response-enc <id_token_encrypted_response_enc>#
- --userinfo-signed-response-alg <userinfo_signed_response_alg>#
- --userinfo-encrypted-response-alg <userinfo_encrypted_response_alg>#
- --userinfo-encrypted-response-enc <userinfo_encrypted_response_enc>#
- --default-max-age <default_max_age>#
- --require-auth-time <require_auth_time>#
- --default-acr-values <default_acr_values>#
- --initiate-login-uri <initiate_login_uri>#
- --request-object-signing-alg <request_object_signing_alg>#
- --request-object-encryption-alg <request_object_encryption_alg>#
- --request-object-encryption-enc <request_object_encryption_enc>#
- --request-uris <request_uris>#
- --require-signed-request-object <require_signed_request_object>#
- --backchannel-logout-uri <backchannel_logout_uri>#
- --backchannel-logout-session-required <backchannel_logout_session_required>#
Paramètres
- IDENTIFIER#
Paramètre obligatoire
consent#
Met à jour un consentement et affiche un modèle modifié au format JSON sur la sortie standard.
IDENTIFIER devrait être un identifiant de consentement ou consent_id
Usage
canaille set consent [OPTIONS] IDENTIFIER
Options
- --quiet#
Suppress output to standard output.
- --ignore-errors#
Suppress errors and exit silently if the model doesn’t exist or update fails.
- --created <created>#
- --last-modified <last_modified>#
- --consent-id <consent_id>#
- --subject <subject>#
- --client <client>#
- --scope <scope>#
- --issue-date <issue_date>#
- --revokation-date <revokation_date>#
Paramètres
- IDENTIFIER#
Paramètre obligatoire
group#
Met à jour un groupe et affiche le modèle modifié au format JSON sur la sortie standard.
IDENTIFIER devrait être un identifiant de groupe ou display_name
Usage
canaille set group [OPTIONS] IDENTIFIER
Options
- --quiet#
Suppress output to standard output.
- --ignore-errors#
Suppress errors and exit silently if the model doesn’t exist or update fails.
- --created <created>#
- --last-modified <last_modified>#
- --display-name <display_name>#
- --members <members>#
- --owners <owners>#
- --description <description>#
Paramètres
- IDENTIFIER#
Paramètre obligatoire
token#
Met à jour un jeton et affiche un modèle modifié au format JSON sur la sortie standard.
IDENTIFIER devrait être un identifiant de token ou token_id
Usage
canaille set token [OPTIONS] IDENTIFIER
Options
- --quiet#
Suppress output to standard output.
- --ignore-errors#
Suppress errors and exit silently if the model doesn’t exist or update fails.
- --created <created>#
- --last-modified <last_modified>#
- --token-id <token_id>#
- --access-token <access_token>#
- --client <client>#
- --subject <subject>#
- --type <type>#
- --refresh-token <refresh_token>#
- --scope <scope>#
- --issue-date <issue_date>#
- --lifetime <lifetime>#
- --revokation-date <revokation_date>#
- --audience <audience>#
- --sid <sid>#
Paramètres
- IDENTIFIER#
Paramètre obligatoire
user#
Met à jour un utilisateur et affiche un modèle modifié au format JSON sur la sortie standard.
IDENTIFIER devrait être un identifiant utilisateur ou user_name
Usage
canaille set user [OPTIONS] IDENTIFIER
Options
- --quiet#
Suppress output to standard output.
- --ignore-errors#
Suppress errors and exit silently if the model doesn’t exist or update fails.
- --created <created>#
- --last-modified <last_modified>#
- --user-name <user_name>#
- --password-failure-timestamps <password_failure_timestamps>#
- --password <password>#
- --password-last-update <password_last_update>#
- --preferred-language <preferred_language>#
- --family-name <family_name>#
- --given-name <given_name>#
- --formatted-name <formatted_name>#
- --display-name <display_name>#
- --emails <emails>#
- --phone-numbers <phone_numbers>#
- --formatted-address <formatted_address>#
- --street <street>#
- --postal-code <postal_code>#
- --locality <locality>#
- --region <region>#
- --photo <photo>#
- --profile-url <profile_url>#
- --title <title>#
- --organization <organization>#
- --employee-number <employee_number>#
- --department <department>#
- --groups <groups>#
- --lock-date <lock_date>#
- --last-otp-login <last_otp_login>#
- --secret-token <secret_token>#
- --hotp-counter <hotp_counter>#
- --one-time-password <one_time_password>#
- --one-time-password-emission-date <one_time_password_emission_date>#
- --webauthn-credentials <webauthn_credentials>#
Paramètres
- IDENTIFIER#
Paramètre obligatoire
webauthncredential#
Update a webauthncredential and display the edited model in JSON format in the standard output.
IDENTIFIER should be a webauthncredential id or credential_id
Usage
canaille set webauthncredential [OPTIONS] IDENTIFIER
Options
- --quiet#
Suppress output to standard output.
- --ignore-errors#
Suppress errors and exit silently if the model doesn’t exist or update fails.
- --created <created>#
- --last-modified <last_modified>#
- --credential-id <credential_id>#
- --public-key <public_key>#
- --sign-count <sign_count>#
- --aaguid <aaguid>#
- --transports <transports>#
- --name <name>#
- --created-at <created_at>#
- --last-used-at <last_used_at>#
- --user <user>#
Paramètres
- IDENTIFIER#
Paramètre obligatoire
canaille create#
Usage
canaille create [OPTIONS] COMMAND [ARGS]...
client#
Crée un nouveau client et affiche le modèle créé au format JSON sur la sortie standard.
Usage
canaille create client [OPTIONS]
Options
- --quiet#
Suppress output to standard output.
- --ignore-errors#
Suppress errors and exit silently if creation fails.
- --created <created>#
- --last-modified <last_modified>#
consent#
Crée un nouveau consentement et affiche le modèle créé au format JSON sur la sortie standard.
Usage
canaille create consent [OPTIONS]
Options
- --quiet#
Suppress output to standard output.
- --ignore-errors#
Suppress errors and exit silently if creation fails.
- --created <created>#
- --last-modified <last_modified>#
group#
Crée un nouveau groupe et affiche le modèle créé au format JSON sur la sortie standard.
Usage
canaille create group [OPTIONS]
Options
- --quiet#
Suppress output to standard output.
- --ignore-errors#
Suppress errors and exit silently if creation fails.
- --created <created>#
- --last-modified <last_modified>#
token#
Crée un nouveau jeton et affiche le modèle créé au format JSON sur la sortie standard.
Usage
canaille create token [OPTIONS]
Options
- --quiet#
Suppress output to standard output.
- --ignore-errors#
Suppress errors and exit silently if creation fails.
- --created <created>#
- --last-modified <last_modified>#
user#
Crée un nouvel utilisateur et affiche le modèle créé au format JSON sur la sortie standard.
Usage
canaille create user [OPTIONS]
Options
- --quiet#
Suppress output to standard output.
- --ignore-errors#
Suppress errors and exit silently if creation fails.
- --created <created>#
- --last-modified <last_modified>#
webauthncredential#
Create a new webauthncredential and display the created model in JSON format in the standard output.
Usage
canaille create webauthncredential [OPTIONS]
Options
- --quiet#
Suppress output to standard output.
- --ignore-errors#
Suppress errors and exit silently if creation fails.
- --created <created>#
- --last-modified <last_modified>#
canaille delete#
Usage
canaille delete [OPTIONS] COMMAND [ARGS]...
client#
Delete the clients that match the filters.
Without filters, all the clients are deleted.
Usage
canaille delete client [OPTIONS]
Options
- --noconfirm#
Delete without asking for confirmation.
- --ignore-errors#
Skip items that fail to delete and continue with others.
- --id <id>#
- --created <created>#
- --last-modified <last_modified>#
- --description <description>#
- --owners <owners>#
- --audience <audience>#
- --client-id <client_id>#
- --client-secret <client_secret>#
- --client-id-issued-at <client_id_issued_at>#
- --client-secret-expires-at <client_secret_expires_at>#
- --redirect-uris <redirect_uris>#
- --token-endpoint-auth-method <token_endpoint_auth_method>#
- --token-endpoint-auth-signing-alg <token_endpoint_auth_signing_alg>#
- --grant-types <grant_types>#
- --response-types <response_types>#
- --client-name <client_name>#
- --client-uri <client_uri>#
- --logo-uri <logo_uri>#
- --scope <scope>#
- --contacts <contacts>#
- --tos-uri <tos_uri>#
- --policy-uri <policy_uri>#
- --jwks-uri <jwks_uri>#
- --jwks <jwks>#
- --sector-identifier-uri <sector_identifier_uri>#
- --subject-type <subject_type>#
- --software-id <software_id>#
- --software-version <software_version>#
- --post-logout-redirect-uris <post_logout_redirect_uris>#
- --application-type <application_type>#
- --id-token-signed-response-alg <id_token_signed_response_alg>#
- --id-token-encrypted-response-alg <id_token_encrypted_response_alg>#
- --id-token-encrypted-response-enc <id_token_encrypted_response_enc>#
- --userinfo-signed-response-alg <userinfo_signed_response_alg>#
- --userinfo-encrypted-response-alg <userinfo_encrypted_response_alg>#
- --userinfo-encrypted-response-enc <userinfo_encrypted_response_enc>#
- --default-max-age <default_max_age>#
- --require-auth-time <require_auth_time>#
- --default-acr-values <default_acr_values>#
- --initiate-login-uri <initiate_login_uri>#
- --request-object-signing-alg <request_object_signing_alg>#
- --request-object-encryption-alg <request_object_encryption_alg>#
- --request-object-encryption-enc <request_object_encryption_enc>#
- --request-uris <request_uris>#
- --require-signed-request-object <require_signed_request_object>#
- --backchannel-logout-uri <backchannel_logout_uri>#
- --backchannel-logout-session-required <backchannel_logout_session_required>#
consent#
Delete the consents that match the filters.
Without filters, all the consents are deleted.
Usage
canaille delete consent [OPTIONS]
Options
- --noconfirm#
Delete without asking for confirmation.
- --ignore-errors#
Skip items that fail to delete and continue with others.
- --id <id>#
- --created <created>#
- --last-modified <last_modified>#
- --consent-id <consent_id>#
- --subject <subject>#
- --client <client>#
- --scope <scope>#
- --issue-date <issue_date>#
- --revokation-date <revokation_date>#
group#
Delete the groups that match the filters.
Without filters, all the groups are deleted.
Usage
canaille delete group [OPTIONS]
Options
- --noconfirm#
Delete without asking for confirmation.
- --ignore-errors#
Skip items that fail to delete and continue with others.
- --id <id>#
- --created <created>#
- --last-modified <last_modified>#
- --display-name <display_name>#
- --members <members>#
- --owners <owners>#
- --description <description>#
token#
Delete the tokens that match the filters.
Without filters, all the tokens are deleted.
Usage
canaille delete token [OPTIONS]
Options
- --noconfirm#
Delete without asking for confirmation.
- --ignore-errors#
Skip items that fail to delete and continue with others.
- --id <id>#
- --created <created>#
- --last-modified <last_modified>#
- --token-id <token_id>#
- --access-token <access_token>#
- --client <client>#
- --subject <subject>#
- --type <type>#
- --refresh-token <refresh_token>#
- --scope <scope>#
- --issue-date <issue_date>#
- --lifetime <lifetime>#
- --revokation-date <revokation_date>#
- --audience <audience>#
- --sid <sid>#
user#
Delete the users that match the filters.
Without filters, all the users are deleted.
Usage
canaille delete user [OPTIONS]
Options
- --noconfirm#
Delete without asking for confirmation.
- --ignore-errors#
Skip items that fail to delete and continue with others.
- --id <id>#
- --created <created>#
- --last-modified <last_modified>#
- --user-name <user_name>#
- --password-failure-timestamps <password_failure_timestamps>#
- --password <password>#
- --password-last-update <password_last_update>#
- --preferred-language <preferred_language>#
- --family-name <family_name>#
- --given-name <given_name>#
- --formatted-name <formatted_name>#
- --display-name <display_name>#
- --emails <emails>#
- --phone-numbers <phone_numbers>#
- --formatted-address <formatted_address>#
- --street <street>#
- --postal-code <postal_code>#
- --locality <locality>#
- --region <region>#
- --photo <photo>#
- --profile-url <profile_url>#
- --title <title>#
- --organization <organization>#
- --employee-number <employee_number>#
- --department <department>#
- --groups <groups>#
- --lock-date <lock_date>#
- --last-otp-login <last_otp_login>#
- --secret-token <secret_token>#
- --hotp-counter <hotp_counter>#
- --one-time-password <one_time_password>#
- --one-time-password-emission-date <one_time_password_emission_date>#
- --webauthn-credentials <webauthn_credentials>#
webauthncredential#
Delete the webauthncredentials that match the filters.
Without filters, all the webauthncredentials are deleted.
Usage
canaille delete webauthncredential [OPTIONS]
Options
- --noconfirm#
Delete without asking for confirmation.
- --ignore-errors#
Skip items that fail to delete and continue with others.
- --id <id>#
- --created <created>#
- --last-modified <last_modified>#
- --credential-id <credential_id>#
- --public-key <public_key>#
- --sign-count <sign_count>#
- --aaguid <aaguid>#
- --transports <transports>#
- --name <name>#
- --created-at <created_at>#
- --last-used-at <last_used_at>#
- --user <user>#
canaille reset-otp#
Reset one-time passcode authentication for a user and display the edited user in JSON format in the standard output.
IDENTIFIER devrait être un identifiant utilisateur ou user_name
Usage
canaille reset-otp [OPTIONS] IDENTIFIER
Paramètres
- IDENTIFIER#
Paramètre obligatoire
canaille periodiq#
Run periodiq scheduler.
Setup Dramatiq with broker and task modules from Flask app.
Usage
canaille periodiq [OPTIONS] [BROKER_NAME]
Options
- -v, --verbose#
turn on verbose log output
Paramètres
- BROKER_NAME#
Optional argument
canaille worker#
Run dramatiq workers.
Setup Dramatiq with broker and task modules from Flask app.
Usage
canaille worker [OPTIONS] [BROKER_NAME]
Options
- -v, --verbose#
turn on verbose log output
- -p, --processes <PROCESSES>#
the number of worker processes to run
- Default:
2
- -t, --threads <THREADS>#
the number of worker treads per processes
- Default:
8
- -Q, --queues <QUEUES>#
listen to a subset of queues, comma separated
Paramètres
- BROKER_NAME#
Optional argument