01Run it
Replace the <placeholders> with your own values, or use the builder below.
p202 user create --user-email <user_email> --user-name <user_name>02What you get
Pick the shape you need. People get a table. Add
--json, --csv or --ndjson for scripts, or -q for ids only. An AI agent gets compact JSON without asking. All output formats03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 user createSet flags below; the command updates as you type.
04Flags
8 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --idempotency-keystring | Retry-safe create: the server records the response under this key and replays it on a retry with the same key and payload instead of creating a duplicate |
| --user-activestring | 1=active (default), 0=inactive: 0, 101 |
| --user-emailstringrequired | Email (required) |
| --user-fnamestring | First name |
| --user-lnamestring | Last name |
| --user-namestringrequired | Username (required) |
| --user-passstring | Password, 8-72 characters (omit it to be asked without echo, or to pipe it on stdin; a value here stays in shell history) |
| --user-timezonestring | Timezone (default: UTC) |
05For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands user create --json. - With
AI_AGENT,CLAUDECODEor another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with ahint. - Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
- This command writes. Add
--stagedto record it as a proposal a person applies withp202 change apply.
{
"path": "p202 user create",
"use": "create",
"short": "Create a new user",
"runnable": true,
"flags": [
{
"name": "idempotency-key",
"type": "string",
"default": "",
"usage": "Retry-safe create: the server records the response under this key and replays it on a retry with the same key and payload instead of creating a duplicate",
"required": false
},
{
"name": "user-active",
"type": "string",
"default": "",
"usage": "1=active (default), 0=inactive: 0, 1",
"allowed_values": [
"0",
"1"
],
"required": false
},
{
"name": "user-email",
"type": "string",
"default": "",
"usage": "Email (required)",
"required": true
},
{
"name": "user-fname",
"type": "string",
"default": "",
"usage": "First name",
"required": false
},
{
"name": "user-lname",
"type": "string",
"default": "",
"usage": "Last name",
"required": false
},
{
"name": "user-name",
"type": "string",
"default": "",
"usage": "Username (required)",
"required": true
},
{
"name": "user-pass",
"type": "string",
"default": "",
"usage": "Password, 8-72 characters (omit it to be asked without echo, or to pipe it on stdin; a value here stays in shell history)",
"required": false
},
{
"name": "user-timezone",
"type": "string",
"default": "",
"usage": "Timezone (default: UTC)",
"required": false
}
]
}