enable/disable the admin panel, reset password, add admin users, etc.
Check if AdminPanel is enabled or disabled and display link on which the AdminPanel is accessibe:
opencli admin
Example:
# opencli admin
● AdminPanel is running and is available on: https://server.openpanel.co:2087/
To disable access to the AdminPanel:
opencli admin off
To enable access to the AdminPanel:
opencli admin on
To view all admin accounts:
opencli admin list
To create new admin accounts:
opencli admin new <username> <password>
To reset the password for an admin user:
opencli admin password <username> <new_password>
To rename an existing admin user:
opencli admin rename <old_username> <new_username>
To suspend an existing admin user:
opencli admin suspend <username>
To unsuspend an existing admin user:
opencli admin unsuspend <username>
To rename an existing admin user:
opencli admin delete <username>
:::info Note: User with 'admin' role can not be deleted. :::
opencli admin notifications
allows you to change the notification preferences.
Settings are stored in /usr/local/admin/service/notifications.ini
file. However, it is recommended not to modify this file directly. Instead, it's best to utilize the opencli commands. This way, any changes made are immediately applied, and the admin service is automatically restarted only when necessary.
The get
parameter allows you to view current notification settings.
opencli admin notifications get <OPTION>
Example:
# opencli admin notifications get reboot
yes
The update
parameter allows you to change the notification settings.
opencli admin notifications update <OPTION> <NEW-VALUE>
Example:
opencli admin notifications update load 10
Updated load to 10
Currently available options for notifications are:
To check current server info you can use the following command:
opencli server_info