You must login to view /lordwelch/chasquid/src/commit/8e9ea901e9ec125d7de24c97892cade1f0723e54/internal/userdb/userdb_test.go.
The GitHub option should be usable for most people, it only links via username.

Files
chasquid/docs/man/chasquid-util.1.md
Albert ARIBAUD fa074ec16c chasquid-util: switch --configdir into --config_dir and deprecate --configdir
There's an inconsistency between chasquid (which uses `--config_dir`) and
chasquid-util (which uses `--configdir`).

That is prone to cause confusion, so this patch renames chasquid-util's
flag, leaving the old one as deprecated with a warning message.

Closes https://github.com/albertito/chasquid/pull/60.

Amended-by: Alberto Bertogli <albertito@blitiri.com.ar>
  Added test case for the deprecated option, adjusted commit message.
2025-03-31 09:19:45 +01:00

70 lines
1.7 KiB
Markdown

# NAME
chasquid-util - chasquid management tool
# SYNOPSIS
**chasquid-util** \[_options_\] user-add _user@domain_ \[--password=_password_\] \[--receive\_only\]
**chasquid-util** \[_options_\] user-remove _user@domain_
**chasquid-util** \[_options_\] authenticate _user@domain_ \[--password=_password_\]
**chasquid-util** \[_options_\] check-userdb _domain_
**chasquid-util** \[_options_\] aliases-resolve _addr_
**chasquid-util** \[_options_\] domaininfo-remove _domain_
**chasquid-util** \[_options_\] print-config
# DESCRIPTION
chasquid-util is a command-line utility for [chasquid(1)](chasquid.1.md) operations.
# OPTIONS
- **user-add** _user@domain_ \[--password=_password_\] \[--receive\_only\]
Add a new user to the domain.
If _--receive\_only_ is given, then the user will never successfully
authenticate. This is useful when creating receive-only users.
- **user-remove** _user@domain_
Remove the user from the domain.
- **authenticate** _user@domain_ \[--password=_password_\]
Check the user's password.
- **check-userdb** _domain_
Check the integrity of the domain's users database.
- **aliases-resolve** _addr_
Resolve the given address. Talks to the running chasquid instance.
- **domaininfo-remove** _domain_
Remove the domain information entry. This can be used to manually allow a
security level downgrade. Talks to the running chasquid instance.
- **print-config**
Parse and print the configuration in a human-readable way.
- **-C** or **--config\_dir=&lt;path**>
Configuration directory.
- **--configdir=&lt;path**>
Deprecated alias for **--config\_dir=&lt;path**>.
# SEE ALSO
[chasquid(1)](chasquid.1.md)