Lightrun Manager CLI Commands🔗
This reference describe the Lightrun CLI commands, options, and parameters available to Lightrun Administrators.
Required Roles
| Up to version 1.69 inclusive | From version 1.70.3 and higher | 
|---|---|
| ROLE_MANAGER | Company Admin | 
Prerequisites🔗
This tutorial assumes that you have:
- A Lightrun account.
- Installed the Lightrun CLI on your local machine.
- Authenticated the Lightrun CLI
user🔗
 create-user🔗
 The create-user command creates a new user based on the specified details.
Synopsis🔗
java -jar lightrunc.jar create-user <FirstName> <LastName> <Email> <Role1> <Role2>...-companyName <YOUR_COMPANY_NAME>
Options🔗
| Parameter | Description | 
|---|---|
| Username | A unique name for the user | 
| Email | A valid and unique email address | 
| Role | Valid values: ROLE_ADMINROLE_MANAGERROLE_USERROLE_IGNORE_QUOTA | 
Example🔗
Example
The following creates a new user with the User role for Dr. Dolittle with the user name dolittle when a Manager from the company DoctorCom runs the command.
java -jar lightrunc.jar create-user dolittle Dr. Dolittle dolittle@doctor.com ROLE_USER
When you press Enter, the terminal requests a password for the new user.
Enter a password, press Enter and the terminal prints:
User successfully created in company DoctorCom
delete-user🔗
 The delete-user command deletes a specified user.
Warning
A user cannot be restored once deleted.
Note
The user must first be deactivated before they can be deleted. Deactivate directly from the Management Portal by navigating to Manager->User management.
Synopsis🔗
java -jar lightrunc.jar delete-user <username>
Options🔗
| Option | Description | 
|---|---|
| Username | the email address associated with the user that is to be deleted | 
Example🔗
Example
$ java -jar lightrunc.jar delete-user SMITHJ@acme.com
User Deleted