> ## Documentation Index
> Fetch the complete documentation index at: https://teamcopilot.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Admin CLI

> Reference for the TeamCopilot admin commands used to manage users and workspace secrets.

TeamCopilot includes a small admin CLI for workspace maintenance.

## User management commands

* `npx teamcopilot create-user`
* `npx teamcopilot change-user-role`
* `npx teamcopilot delete-user`
* `npx teamcopilot reset-password`
* `npx teamcopilot rotate-jwt-secret`

## What each command is for

* `create-user`: add a teammate before they can sign in
* `change-user-role`: promote or demote a user between `User` and `Engineer`
* `delete-user`: remove a user account from the workspace
* `reset-password`: reset a user's login password
* `rotate-jwt-secret`: invalidate existing sessions and force everyone to log in again

## Operational note

Run these commands from the same workspace directory that TeamCopilot uses.

If the environment file is missing or incomplete, initialize the workspace first with `npx teamcopilot init`.
