# urbestack-user-add

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-user-add --name NAME [--role admin|user|reseller] [--email ADDR] [--package NAME] [--owner RESELLER] --password-stdin
```

## Description

Creates an UrbeStack account. The default role is user, which creates a customer. Customers and resellers also get a Linux account with shell access disabled, an FTP login and a phpMyAdmin account. They are included in nightly backups.

Supply the password with --password-stdin. UrbeStack reads the first line of standard input and requires 8 to 128 printable characters. The command refuses a name already in use by an UrbeStack account or, for a customer or reseller, by a Linux account.

A reseller is a customer who can own other customers. Use --owner to assign a new customer to a reseller. Omit it to create an account owned directly by the administrator. With --package, choose an administrator's package or, for a customer assigned to a reseller, one of that reseller's packages. The reseller must have room for another customer and be within their package's limits for combined disk and bandwidth usage across their customers.

Setting --email for an administrator also updates delivery of root's mail. If the mail update fails, the command reports the error and keeps the account. The next rebuild retries the update.

## Same in the API

- [POST /users](https://urbestack.com/docs/api/post-users.md): Create a user account

## Command family: user

- [urbestack-user-del](https://urbestack.com/docs/commands/urbestack-user-del.md): Deletes an UrbeStack account and its domains, subdomains, DNS zones, databases and database users.
- [urbestack-user-list](https://urbestack.com/docs/commands/urbestack-user-list.md): Lists UrbeStack accounts.
- [urbestack-user-second-factor-codes](https://urbestack.com/docs/commands/urbestack-user-second-factor-codes.md): Replaces the user's recovery codes with eight new codes and prints them once.
- [urbestack-user-second-factor-confirm](https://urbestack.com/docs/commands/urbestack-user-second-factor-confirm.md): Confirms a pending second factor using the authenticator app's six-digit code supplied with --code.
- [urbestack-user-second-factor-enrol](https://urbestack.com/docs/commands/urbestack-user-second-factor-enrol.md): Starts enrolment of a TOTP second factor and prints the secret as text and as an otpauth:// URI for an authenticator app.
- [urbestack-user-set](https://urbestack.com/docs/commands/urbestack-user-set.md): Updates an existing UrbeStack account.
