← 返回命令列表

Linux command

register_new_matrix_user 命令

趣味

复制后可按需替换文件名、目录或参数。

常用示例

Example

register_new_matrix_user --config path/to/homeserver.yaml

Example

register_new_matrix_user --config path/to/homeserver.yaml --admin

Example

register_new_matrix_user --config path/to/homeserver.yaml --user [username] --password [password] --admin

Example

register_new_matrix_user --config path/to/homeserver.yaml --user [username] --password [password] --no-admin [https://matrix.example.com]

说明

register_new_matrix_user registers new users on a Matrix homeserver when open registration has been disabled. It reads the shared secret from the homeserver configuration to authorize user creation. This is the official way to create users on a Synapse server with closed registration.

参数

--config _file_
Path to Synapse homeserver.yaml configuration
--user _name_
Username for the new account
--password _password_
Password for the new account
--admin
Create an administrator account
--no-admin
Do not make the new user an admin (default)
-k _secret_, --shared-secret _secret_
Shared secret (alternative to providing via config file).
-t _type_, --user-type _type_
User type as specified in synapse.api.constants.UserTypes.
-h, --help
Show help message and exit.
server_url
Homeserver URL (default: https://localhost:8448).

FAQ

What is the register_new_matrix_user command used for?

register_new_matrix_user registers new users on a Matrix homeserver when open registration has been disabled. It reads the shared secret from the homeserver configuration to authorize user creation. This is the official way to create users on a Synapse server with closed registration.

How do I run a basic register_new_matrix_user example?

Run `register_new_matrix_user --config path/to/homeserver.yaml` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --config _file_ do in register_new_matrix_user?

Path to Synapse homeserver.yaml configuration