Home/ Documentation /Maintenance and troubleshooting
Console commands
Unattended installation, the administrator password, publishing the panel and installing additional tools from the command line.
Unattended installation
The network installer accepts every setting as a parameter, so it works in scripts and automated server provisioning. Pass the parameters after bash -s --:
curl -fsSL https://dist.contextadmin.com/install | sudo bash -s -- --license KEY --domain panel.example.comOn macOS, run the command without sudo. The panel then runs under your account as a launchd agent and is not published on the network, so --expose, --domain and --panel-port are ignored.
Installer parameters
--license KEY: the license key. Required for a new installation. When you update or repair an installation, it keeps its current key.--domain FQDN: the panel under your own domain with a Let’s Encrypt certificate. The A record must already point to the server.--expose ip: the panel is available at the server’s IP address over HTTPS with a self-signed certificate. This is the default when you do not pass a domain.--expose none: the panel listens only on 127.0.0.1 and you connect through an SSH tunnel. The installer opens nothing to the outside.--port N: the port the panel listens on behind nginx. Default 8000.--panel-port N: the public HTTPS port of the panel. Default 5555, so port 443 stays free for project domains.--admin-password PASSWORD: the password for the admin account, at least 10 characters with an uppercase letter, a lowercase letter, a digit and a special character. Without this parameter, the installer generates a password and shows it once, at the end of the installation.--with LIST: the tools to install, separated by commas: docker, claude, codex, opencode, ngrok, ollama, git, tmux, incus, fail2ban. Default: docker and claude.--with noneinstalls only git and tmux, which the panel always needs.--without LIST: removes the listed tools from the selection.--all: installs every tool on the list.--source dist: the default. Tools come from our mirror, in the versions frozen on the day it was prepared. If the mirror is unreachable, the installer falls back to the vendors.--source upstream: the newest versions straight from the vendors.
Fail2ban and the block on outgoing mail from projects are always installed, regardless of the list. Incus is only needed on a server that provides panels to clients.
If you pass neither --domain nor --expose none, the panel is published at the server’s IP address. If it should be reachable only through an SSH tunnel, add --expose none.
Environment variables
You can pass the same settings as variables. A password passed in a variable does not appear in the process list.
CONTEXTADMIN_LICENSE_KEY: the license key.CONTEXTADMIN_ADMIN_PASSWORD: the admin account password.CONTEXTADMIN_DOMAIN: the panel domain.CONTEXTADMIN_PANEL_PORTandDASHBOARD_PORT: the public port and the internal port.CONTEXTADMIN_SOFTWAREandCONTEXTADMIN_SOFTWARE_SOURCE: equivalents of--withand--source.CONTEXTADMIN_USERandCONTEXTADMIN_DIR: the service account and the program directory. Defaults:contextadminand/opt/contextadmin.
To display the description of all parameters, run:
curl -fsSL https://dist.contextadmin.com/install | bash -s -- --helpThe interactive installer shows its description with bash setup.sh --help.
Commands of the installed panel
The panel is a single executable file. In a server installation you will find it at /opt/contextadmin/bin/contextadmin-panel. Run the commands that change the system configuration as root.
Version number
/opt/contextadmin/bin/contextadmin-panel --versionAdministrator password
sudo /opt/contextadmin/bin/contextadmin-panel --set-admin-passwordThe command generates a new password for the admin account and shows it once. The panel keeps only its hash. You can provide your own password in the CONTEXTADMIN_ADMIN_PASSWORD variable or on standard input. Either way, it does not appear in the process list:
read -rs PASSWORD; printf '%s' "$PASSWORD" | sudo /opt/contextadmin/bin/contextadmin-panel --set-admin-passwordWith the additional --if-unset, the password is set only if the admin account does not have one yet. This is useful in scripts you run more than once.
Publishing the panel after installation
sudo /opt/contextadmin/bin/contextadmin-panel --expose --domain panel.example.comThe command configures nginx and HTTPS for the panel. With --domain, the panel gets a Let’s Encrypt certificate; without it, the panel is available at the IP address with a self-signed certificate. Change the port with --panel-port. The command refuses to run if the admin account has no password: set one first or add --admin-password.
Installing additional tools
sudo /opt/contextadmin/bin/contextadmin-panel --install-software codex,opencodeInstalls the listed tools with the same procedures the Software section of the panel uses. Available names: docker, claude, codex, opencode, ngrok, ollama, git, gh, tmux, incus, fail2ban, sftp. An unknown name stops the command and prints the list of available ones. This command cannot be combined with other panel parameters.
Server protection
The installer sets these up itself. The commands below are useful when you want to restore them after manual changes to the system. You can run them more than once.
sudo /opt/contextadmin/bin/contextadmin-panel --enable-fail2ban
sudo /opt/contextadmin/bin/contextadmin-panel --enable-mail-block--enable-fail2ban sets up fail2ban jails for SSH logins and for rejected requests in the nginx log (401 and 403 responses). --enable-mail-block blocks outgoing connections to port 25 from project containers, so no project can send mail directly from the server.
The remaining parameters of the executable are called by the panel itself or by the installer. Do not run them by hand. To check the service status and its log, use the commands described in the troubleshooting section.