How to Mass Create GoAdmio Accounts Using Bash and /go/create

Migrating fifty customers? Onboarding a whole agency portfolio? Clicking Create Account fifty times is an afternoon of typos waiting to happen. GoAdmio‘s /go/create command turns it into a spreadsheet and a loop.

The pattern

Prepare a CSV with one line per account: domain, username, contact email, quota. Then loop:

while IFS=, read -r domain user email quota; do
  /go/create "$domain" "$user" "$email" "$quota"
done < accounts.csv

Each line provisions a complete account: document root, DNS, mail domain, FTP. The exact flags and order are in the Command Reference; check them against your version before the run.

Passwords at scale

Never put one shared password in the CSV. Generate a unique password per account inside the loop (or let the command generate one) and output a private results file: domain, username, password, one per line, permissions 600, deleted after the welcome mails go out.

Test on three, then run the batch

  1. Create three accounts from the CSV's first lines.
  2. Verify each: panel login works, DNS zone exists, a test mailbox sends and receives.
  3. Fix the script if anything is off, then run the remainder.

Ten minutes of testing beats an evening of repairing forty-seven half-right accounts.

After the batch

  • Spot-check a random 10% in List Accounts.
  • Queue SSL issuance for the new domains once their DNS points over.
  • Send welcome emails with each customer's unique credentials, and set a reminder to delete the credentials file.

Pair it with migration

Mass creation is step one of a cPanel exodus; step two is restoring each customer's backup into their new account, which the migration guide covers.

Spreadsheets plus one loop: provisioning at any scale. More in the docs and at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *