Get your free beta license ↗
CMDCommand · run as root on the server · token family

urbestack-token-create

First published 3 Oct 20260.1.0Unchanged since publication

Usage

# urbestack-token-create --user NAME [--label TEXT] [--expires-in SECONDS] [--address IP] [--scopes LIST] [--kind session|api|challenge] [--agent TEXT] [--opened-by-token ID]

Description

From the command's --help output
Creates a token for the active UrbeStack user named by --user. The command prints the token
secret once. UrbeStack stores only its hash.

--kind defaults to api. Use --kind session for a login session or --kind challenge for the token
used between the two steps of a login with a second factor. Use --expires-in to set the lifetime
in whole seconds. A value of 0 gives the token an unlimited lifetime. The default is 0 for API
tokens and sessions and 120 seconds for challenges. --label accepts up to 64 characters and
defaults to api, session, or second factor, depending on the kind.

--address binds the token to a client IPv4 or IPv6 address. UrbeStack rejects the token and
revokes it if a client presents it from another IP address. Sessions and challenges require
--address. --agent records the browser's user agent for a session and accepts up to 255
characters.

--scopes takes a comma-separated list of read, domains, dns, certificates, mail, databases,
files, users, backups, settings, security, export, license, and all. The read scope covers every
GET request except export downloads. The export scope covers export and import. The all scope
covers everything except export and can also be written as *. API tokens default to read,
sessions to all, and challenges to an empty list. An empty list permits access only to routes
that require no scope.

To open a customer's panel as in the web interface's "Open their panel" action, use --kind
session, name the administrator or reseller with --actor, and pass the ID of their own session
to --opened-by-token. An administrator can open a session for any customer. A reseller can open
one only for their own customers. The session lasts at most one hour and ends when the opener's
session ends.

Options

Find other commands that accept these options

Same in the API

These operations run the command.
urbestack-token-
Generated from release 0.2.35 (current) · urbestack-token-create --help outputThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/commands/urbestack-token-create/