Skip to content

create

Synopsis

The create subcommand creates a new user account in the Olares system. It allows administrators to define initial settings such as the username, password, role permissions, and resource limits.

Aliases: create, add, new

bash
olares-cli user create <name> [options]

Arguments

ArgumentDescriptionRequired
<name>Specifies the username for the new account.
It is typically the part before the @ symbol in an Olares ID.
For example, alice123 for [email protected].
Yes

Options

OptionShorthandUsageRequiredDefault
--cpu-limit-cSets the CPU limit for the user environment.No1
--descriptionAdds a description for the user account.NoN/A
--display-nameSets the display name for the user.NoN/A
--domainSpecifies the domain for the Olares ID.NoOlares system's domain
--help-hDisplays help information.NoN/A
--kubeconfigSpecifies the path to a kubeconfig file.NoN/A
--memory-limit-mSets the memory limit for the user environment.No3G
--password-pSets the initial login password for the user.NoN/A
--role-rSets the user role.
Valid values: owner, admin, normal.
Nonormal

Examples

bash
# Create a basic user with default settings
olares-cli user create alice123

# Create a user with a specified password and role
olares-cli user create blake123 -p "StrongPassword123" -r admin

# Create a user with custom resource limits (2 CPU cores, 4 GB memory)
olares-cli user create carol123 --cpu-limit 2 --memory-limit 4G

# Create a user with display name and description
olares-cli user create david123 --display-name "David Smith" --description "Data platform administrator"