Update openpanel.md

This commit is contained in:
Stefan Pejcic 2024-02-05 15:39:46 +01:00 committed by GitHub
parent f02dde9091
commit b3fd3486a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,29 @@ Suspended users are highlighted in red, and no actions can be performed on a sus
</TabItem>
<TabItem value="CLI-users" label="With OpenCLI">
From the terminal: [opencli user-list](/docs/admin/scripts/users#list-users)
To list all users, use the following command:
```bash
opencli user-list
```
Example output:
```bash
opencli user-list
+----+----------+-----------------+-----------------+---------------------+
| id | username | email | plan_name | registered_date |
+----+----------+-----------------+-----------------+---------------------+
| 52 | stefan | stefan | cloud_4_nginx_3 | 2023-11-16 19:11:20 |
| 53 | petar | petarc@petar.rs | cloud_8_nginx | 2023-11-17 12:25:44 |
| 54 | rasa | rasa@rasa.rs | cloud_12_nginx | 2023-11-17 15:09:28 |
+----+----------+-----------------+-----------------+---------------------+
```
You can also format the data as JSON:
```bash
opencli user-list --json
```
</TabItem>
</Tabs>