ユーザーアカウントを管理する
このセクションでは、SMCTL でユーザーアカウントを管理するために使用するコマンドについてカバーします。フラグを使用してコマンドのパラメータを指定します。
注記
Every command you run in SMCTL will automatically rely on resources associated with your primary (active) account.
コマンド
ユーザーアカウントを管理するのに利用可能なすべての操作を一覧表示するには、次のコマンドを挿入します。
smctl user accounts --help
or
smctl user accounts -h
Subcommands
The user accounts command supports these subcommands:
表 1. Subcommands for user accounts
Shortcut | Subcommand | Description |
---|---|---|
ls | list | List accounts for user |
update | Update active account. |
フラグ
ユーザーアカウントコマンドは、これらのフラグをサポートしています。
表 2. ユーザーアカウントを管理するフラグ
ショートカット | フラグ | 説明 |
---|---|---|
-h | --help | ユーザーアカウントに関するヘルプ。 |
Examples
To list all accounts
To list all accounts your username is associated with:
smctl user accounts list
Command sample
smctl user accounts ls
Command output
ID NAME ACTIVE ACCOUNT (YES/NO) 21b08a80-e3c1-4149-f21e-697511d2e2g1 Example account 1 YES 75b08a80-e3d4-4149-g53v-288500f5a4e4 Example account 2 NO
Set or change your primary account
To set an account to active:
smctl user accounts update <account ID or account name>
Command sample
smctl user accounts update Example account 2