Unattended install and all installer options
Add --non-interactive --accept-license and give the answers as options to install without any questions, for example from a cloud-init script. The installer also runs unattended on its own when there is no terminal.
Steps
- Read the license agreement first (
installer/LICENSE.txtin the download). - Run, as root:
curl -fsSL https://get.sahaab.io/install -o install && sudo bash install \ --non-interactive --accept-license \ [email protected] --hostname=server1.example.com \ --company="My Hosting" --license=YOUR-KEY - Wait for Installation complete. and read the summary at the end of the output.
All installer options
| Option | What it does | Default |
|---|---|---|
--hostname= | Server hostname, for example server1.example.com | the server's current name |
--email= | Administrator email (required for unattended installs) | — |
--company= | Company or brand name shown in the panel | My Hosting |
--admin-user= | Administrator username | root |
--admin-pass= | Administrator password (empty: a strong one is generated) | generated |
--ns1=, --ns2= | Your nameservers | ns1. and ns2. + the hostname's domain |
--webserver= | openlitespeed or nginx | openlitespeed |
--migrate-from=HOST | Prepare a transfer from another server after installing | — |
--migrate-port= | SSH port of that server | 22 |
--license=KEY | Activate the full version | trial |
--accept-license | Accept the license agreement | required |
--non-interactive | Do not ask questions | — |
Good to know
- Without
--accept-licensethe unattended install stops: "Unattended install: add --accept-license after reading installer/LICENSE.txt." --email=must be a valid address, and--hostname=a full name with at least three parts.--admin-pass=must have at least 10 characters with 3 of: lowercase, uppercase, digits, symbols, or the installer stops with "--admin-pass is too weak."- If the license cannot be activated, the install still completes and the trial runs. The summary then says to enter the key under License in the admin panel.
- With
--migrate-from=, the summary shows the address of the Transfer Tool and, when key authentication is used, the SSH public key to add to/root/.ssh/authorized_keyson the old server. - A generated password is printed at the end and saved in
/root/panel-install-summary.txt.
Common questions
Is the password I pass with --admin-pass saved anywhere?
The installer does not print it or write it to a file. Only a generated password is printed and saved in /root/panel-install-summary.txt; the install log /var/log/sahaab-install.log is readable by root only. A password on the command line can stay in your shell history or cloud-init data, so change it after the first login.
Can I change the answers later?
The hostname, nameservers, contact email and brand name can be changed in Server Settings. The license can be entered later on the License page. See activate your license.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to install the control panel on Ubuntu
Install the control panel on a fresh Ubuntu 24.04 or 22.04 server with one command, answer the five setup questions and find your admin login.
- How to activate your Sahaab license key on a server
Turn the trial into the full version by entering your Sahaab license key on the License page of the admin panel, or during the install with --license.
- Server requirements for installing the control panel
Which Ubuntu version, memory, disk, ports and access the control panel needs, and why it must be installed on a fresh server with nothing else on it.