/go/create provisions a new GoAdmio hosting account in one command. It: It can also restore an account from the configuration file left in a previous account's logs, without passing any settings individually (see Restore mode). Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# New account with all defaults
/go/create --domain example.com
Options
A "—" in the Default column means the option is empty or unset unless you pass it.
Main options
| Group | Option | Required | Default | Notes |
|---|---|---|---|---|
| Account | --domain |
Yes | — | See domain rules. |
| Account | --username |
No | The domain name | See username rules. |
| Account | --password |
No | Random 16-character alphanumeric | See Security. |
| Account | --email |
No | info@<domain> |
Login details are emailed here. |
| Account | --owner |
No | — | A value containing a dot must be an existing domain. The new account is then treated as its addon/subdomain. |
| Account | --userid |
No | 1 |
— |
| Account | --packageid |
No | 0 |
— |
| Account | --fullname |
No | — | — |
| Account | --mobile |
No | — | — |
| Account | --description |
No | — | — |
| Account | --timezone |
No | — | — |
| Limits | --diskspace |
No | 0 |
Megabytes; stored internally in bytes. |
| Limits | --bandwidth |
No | 0 |
Megabytes; stored internally in bytes. |
| Limits | --inode |
No | 0 |
— |
| Limits | --ftpno |
No | 100 |
Number of FTP accounts. |
| Limits | --emailno |
No | 100 |
Number of email accounts. |
| Limits | --databaseno |
No | 100 |
Number of databases. |
| Limits | --subdomainno |
No | 100 |
Number of subdomains. |
| Limits | --aliasno |
No | -1 |
Unlimited. |
| Limits | --addonno |
No | -1 |
Unlimited. |
| Web | --phpversion |
No | 8.3 |
Falls back to the latest installed PHP version if 8.3 isn’t installed. |
| Web | --documentroot |
No | — | — |
| Web | --sslcertificate |
No | 1 |
— |
| Web | --sslredirect |
No | — | — |
| Web | --permission |
No | 755 |
— |
| Web | --skeleton |
No | 0 |
Pass y to copy /var/skeleton/ into the new site. |
| Web | --bot |
No | — | — |
| Web | --proxy |
No | — | — |
| Web | --browsercachettl |
No | — | — |
Advanced options
| Group | Option | Default | Notes |
|---|---|---|---|
| Shell | --shell |
— | — |
| Shell | --jailedshell |
— | — |
| FTP | --ftpstatus |
— | — |
| FTP | --ftpupload |
— | — |
| FTP | --ftpdownload |
— | — |
| FTP | --ftpdelete |
— | — |
| SMTP | --smtphost |
— | — |
| SMTP | --smtpuser |
— | — |
| SMTP | --smtppass |
— | — |
| SMTP | --smtpport |
— | — |
--mailttl |
0 |
— | |
| Dates | --expireson |
One year from today | Hosting expiry date. |
| Dates | --domainexpireson |
— | — |
| Internal | --backup |
— | — |
| Internal | --backupstamp |
— | — |
| Internal | --apiignore |
— | — |
| Internal | --timestamp |
— | — |
Examples
# Full account with chosen username, password, and limits
/go/create --domain example.com --username example --password 'S3cureP@ss' \
--email admin@example.com --diskspace 5000 --bandwidth 50000 \
--ftpno 10 --emailno 50 --databaseno 20 --phpversion 8.2
# Addon domain under an existing primary domain
/go/create --domain shop.example.com --owner example.com
# Populate the new site with the server's skeleton files
/go/create --domain example.com --skeleton y
# Restore a deleted account from its saved configuration
/go/create example.com
Output
The command prints a single line of JSON. On success it also emails the same details to the account’s email address.
| Outcome | What you get |
|---|---|
| Account created | JSON with "success": true. |
| Created, but DNS doesn’t point to this server | Same, with a message in warning. The account is created. |
| Validation failure | JSON with "success": false and an error reason. |
| Unknown option | CREATE: Unknown parameter: <option>. Nothing is created. |
Restore with no site.conf |
Exits without creating anything. |
Success
The real output is a single line; it is formatted here for readability.
{
"success": true,
"title": "creating_goadmio_account",
"warning": "",
"result": {
"goadmio_url": "http://<ip>:2020",
"goadmio_urls": "https://go.example.com",
"shared_ip_address": "<ip>",
"domain": "example.com",
"username": "example.com",
"password": "<password>",
"ftp_hostname": "<ip-or-domain>",
"ftp_username": "example.com",
"ftp_password": "<password>",
"webmail_url": "http://<ip>:2024",
"webmail_urls": "https://webmail.example.com"
}
}
If the domain’s DNS doesn’t yet point to this server, warning is set to:
Warning: Domain <domain> Not Resolving To <ip>. Please correct DNS settings.
Validation failure
{"success":false,"title":"creating_goadmio_account","error":"<reason>"}
Security
[!WARNING]
The generated or chosen password appears in plain text in the JSON output and the welcome email. If you pass--passwordon the command line, it can also be visible in the process list and saved in your shell history. Prefer the random default, then change it withpassword.
The database stores a salted hash, not the password itself.
See the full reference at /go/create and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
