Skip to main content

User account commands

Use these commands to identify the accounts your username is associated with and switch your primary account.

Nota

Every command you run in SMCTL will automatically rely on resources associated with your primary (active) account.

Command

To view all user accounts related commands run:

smctl user accounts --help

or

smctl user accounts -h

Subcommands

The user accounts command supports these subcommands:

tabla 1. Subcommands for user accounts

Shortcut

Subcommand

Description

ls

list

List accounts for user

update

Update active account.


Flag

The user account command supports this flag:

tabla 2. Flag for manage user accounts

Shortcut

Flag

Description

-h

--help

Help for user accounts.


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