Version: 2.0.28
Port
opencli port command is used to change port (2083) for accessing OpenPanel.
View current port:
opencli port
Example output
# opencli port
2083
Set custom port:
opencli port set <NUMBER>
Example:
opencli port set 5000
Example output
# opencli port set 5000
5000 is now set for accessing the OpenPanel interface.
Set default port 2083:
opencli port default
Example output
# opencli port default
2083 is now set for accessing the OpenPanel interface.
Caddy and OpenPanel are restarted and the new port is opened in the CSF firewall. Add --no-restart to skip both:
opencli port set <NUMBER> --no-restart
Was this helpful?