Skip to content

user activate

命令说明

user activate命令用于激活已有的 Olares 账户,你需要至少提供 Olares ID、登录密码和助记词短语才能完成激活。该命令通常需要使用管理员权限(sudo)执行。

bash
olares-cli user activate <Olares ID> [选项]

参数

参数描述是否必需
<Olares ID>指定待激活的 Olares 用户账户的唯一标识符。
格式类似电子邮件地址(例如:[email protected]

选项

选项简写用途是否必需默认值
--bfl指定聚合后端接口(BFL)服务地址。
例如:https://example.com
http://127.0.0.1:30180
--enable-tunnel启用或关闭隧道模式进行激活。false
--help-h显示帮助信息。
--host指定快速反向代理(FRP)主机地址。
仅当--enable-tunnel设置为true时使用。
--jws指定指定 FRP 的 JWS(JSON Web Signature)令牌。
仅当--enable-tunnel设置为true时使用。
--language设置系统语言。en-US
--location设置系统时区位置。Asia/Shanghai
--mnemonic指定用于激活的 12 词助记词短语。
--password-p指定待激活 Olares 账户的登录密码。
--vault指定 Vault 服务的 URL。
例如:https://example.com
http://127.0.0.1:30181

使用示例

bash
# 激活 Olares 账户
sudo olares-cli user activate [email protected] -p "HerPassWord"  --mnemonic "apple banana cherry door eagle forest grape house island jacket kite lemon"

# 启用隧道模式激活 Olares 账户
sudo olares-cli user activate [email protected] -p "HisPassWord"  --enable-tunnel --host "frp-gateway.olares.com"  --jws "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.demo.signature"  --bfl http://127.0.0.1:30180 --vault http://127.0.0.1:30180/server  --mnemonic "apple banana cherry door eagle forest grape house island jacket kite lemon"

# 使用指定的语言和时区设置,激活 Olares 账户
sudo olares-cli user activate [email protected] -p "AnotherPassWord"  --mnemonic "alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu"  --language "cn-ZH" --location "Asia/Shanghai"