CLI
This page summarizes the command-line tools that MoorCP Shared installs: moorcp-shared on the panel server, moorcp-agent on every hosting server, and moorctl for calling the API from a terminal. It is written for admins with root access.
| Binary | Location | Installed on | Purpose |
|---|---|---|---|
moorcp-shared | /usr/local/bin/moorcp-shared | panel server | Control plane: panel service, database migrations, staff, license, panel backup, upgrades from the panel |
moorcp-agent | /usr/local/bin/moorcp-agent | every hosting server | Agent: registration with the panel, web server setup, local operations, diagnostic checks |
moorctl | /usr/local/bin/moorctl | panel server | API v1 client for scripts and daily operations |
Every binary has a version subcommand that prints the installed version.
moorcp-shared
Running with the panel env
Almost every moorcp-shared subcommand needs the configuration in /etc/moorcp-shared/env, especially MOORCP_DATABASE_URL. Load that file, then run the binary as the moorcp user (the same user as the service):
set -a; . /etc/moorcp-shared/env; set +a; runuser -u moorcp --preserve-environment -- /usr/local/bin/moorcp-shared staff listReplace staff list with the subcommand you need. Run it as root so the env file can be read.
TIP
Save it as a shell function so you do not have to retype it:
mcp() { (set -a; . /etc/moorcp-shared/env; set +a; runuser -u moorcp --preserve-environment -- /usr/local/bin/moorcp-shared "$@"); }After that, mcp staff list or mcp license status is enough.
WARNING
Do not run moorcp-shared as root for normal commands. Files that root creates in /var/lib/moorcp-shared may not be readable by the service. The exceptions are listed in the table below (init-ca, panel-backup restore, self-upgrade).
Subcommands
| Command | Purpose | Notes |
|---|---|---|
serve | Runs the control plane (API, admin panel, client panel, job worker) | Run by the moorcp-shared systemd service. You do not need to run it by hand |
version | Prints the version and build | |
migrate up | Runs every database migration that has not run yet | Run automatically by the installer on install and upgrade |
migrate down [--n N] | Rolls back the last N migrations (default 1) | Emergency recovery only |
init-ca [--pki-dir DIR] [--force] | Creates the internal CA for agent mTLS | Run once by the installer. The default --pki-dir comes from MOORCP_PKI_DIR |
pki renew-cp [--pki-dir DIR] | Renews the control plane client certificate (used by the panel to call agents) | Restart moorcp-shared afterwards. The old version is kept as *.prev |
staff create --email E --name N [--role R] | Creates a staff account | Roles: admin (default), technician, support |
staff passwd --email E | Changes a staff password | All sessions of that staff member are revoked |
staff reset-2fa --email E | Resets a staff member's 2FA | The staff member sets up 2FA again at the next login |
staff list | Lists staff: email, name, role, 2FA status, disabled | |
secrets status | Inventory of stored secrets and data keys, without values | JSON output |
secrets rotate | Creates a new data key and re-encrypts every secret | JSON output |
license status | License status: Instance ID, plan, account/server usage, validity | |
license instance-id | Prints the Instance ID of this installation | Send it when you buy a license |
license activate [--key KEY] [--trial] | Gets a license token from the license server: with a key, or the license registered for this server's public IP | --trial (used by the installer) skips a paid license that is already installed and requests a 30-day trial when the IP has no license |
license install FILE | Installs a license token from a file. Use - to read from stdin | A running panel uses the new token right away |
license remove | Removes the license token | |
panel-backup status | Panel backup status (JSON) | |
panel-backup run | Runs a panel backup now | Needs an off-host destination to be selected |
panel-backup kit FILE | Writes the recovery kit to FILE (mode 0600) | Store it outside the panel server |
panel-backup snapshots --kit FILE | Lists the snapshots in the kit's repository | Does not need a running panel |
panel-backup restore --kit FILE [--snapshot ID] [--force] | Restores the panel from a snapshot (default latest) | Must run as root, and the moorcp-shared service must be stopped. --force for a snapshot from a newer panel version |
self-upgrade | Runs an upgrade request made from the panel | Must run as root. Run automatically by moorcp-shared-upgrade.service. See Upgrading from the panel |
hostcert issue --domain HOST [--email EMAIL] [--staging] | Issues a Let's Encrypt certificate for the panel hostname with the built-in ACME client (no certbot), then runs the deploy hooks | Must run as root. Run by the installer. --staging uses the Let's Encrypt test CA. See SSL for the panel hostname |
hostcert renew | Renews the recorded hostnames that are due (less than 30 days left) or not issued yet | Must run as root. Run twice a day by moorcp-hostcert.timer |
hostcert status | Lists the managed hostnames and their expiry date | |
hostcert remove --domain HOST | Stops renewing a hostname. The certificate files are kept | Must run as root |
Output language
Terminal commands of moorcp-shared and moorcp-agent (everything except serve) print messages and JSON logs in English. Set MOORCP_LANG=id to get Indonesian:
MOORCP_LANG=id /usr/local/bin/moorcp-agent opsThe services themselves (serve) and the API keep their own language rules. See Environment variables.
Staff passwords
staff create and staff passwd do not accept the password as an argument, so the password does not end up in shell history. The password is read from the MOORCP_STAFF_PASSWORD variable, or from the first line of stdin.
Example of resetting a forgotten admin password:
P=$(openssl rand -base64 18 | tr -d '/+=' | cut -c1-20)
echo "$P" | (set -a; . /etc/moorcp-shared/env; set +a; runuser -u moorcp --preserve-environment -- /usr/local/bin/moorcp-shared staff passwd --email admin@example.com)
echo "New password: $P"Example of creating a support staff member:
echo 'StrongPassword-123' | (set -a; . /etc/moorcp-shared/env; set +a; runuser -u moorcp --preserve-environment -- /usr/local/bin/moorcp-shared staff create --email jane@example.com --name Jane --role support)License
Install the license token you received:
(set -a; . /etc/moorcp-shared/env; set +a; runuser -u moorcp --preserve-environment -- /usr/local/bin/moorcp-shared license install -) < license-token.txtOr activate it from the license server, with a key from member.moorcp.com:
(set -a; . /etc/moorcp-shared/env; set +a; runuser -u moorcp --preserve-environment -- /usr/local/bin/moorcp-shared license activate --key MOOR-XXXX-XXXX-XXXX-XXXX)Without --key, the license server looks up a license registered for the panel server's public IP. Activation sends the Instance ID, version, account and server counts, panel hostname, OS, and a hash of the machine ID. Activating replaces the license that is installed.
license status prints a summary with lines such as instance, status, plan, accounts: 12 / 100, servers: 2 / 5, note, and the end date of the subscription, trial, token, or grace period. A limit of 0 is shown as unlimited. License statuses are explained in License.
Restoring the panel from a backup
panel-backup restore is used on a replacement server when the panel server is lost. The order is:
Install a new panel on the replacement server with the installer.
Stop the service:
bashsystemctl stop moorcp-sharedList the available snapshots (as root, with the kit copied to the server):
bash/usr/local/bin/moorcp-shared panel-backup snapshots --kit /root/recovery-kit.jsonRestore:
bash/usr/local/bin/moorcp-shared panel-backup restore --kit /root/recovery-kit.jsonRun the migrations, then start the panel:
bashset -a; . /etc/moorcp-shared/env; set +a; runuser -u moorcp --preserve-environment -- /usr/local/bin/moorcp-shared migrate upbashsystemctl start moorcp-sharedPoint the panel hostname's DNS to the new server. Agents reconnect on their own because the mTLS CA is restored too.
DANGER
restore overwrites /etc/moorcp-shared and the panel database with the snapshot contents. The old configuration is first copied to /etc/moorcp-shared.pre-restore-<time>, but the current database contents are replaced. Full details are in Panel backup and DR.
Upgrading from the panel
The Upgrade button in the new-release banner or in Settings › Updates does not replace the panel directly, because the panel service runs as the moorcp user. The panel only writes a request to /var/lib/moorcp-shared/upgrade/request.json. The moorcp-shared-upgrade.path unit watches that file and runs moorcp-shared self-upgrade as root through moorcp-shared-upgrade.service.
self-upgrade:
- Reads and deletes the request file. If there is no request, the command exits without doing anything.
- Verifies the signatures of the release index,
SHA256SUMS, and theinstall.shof the requested release. A version that is not newer, or is not in the index, is refused. The channel and mirror come from/etc/moorcp-shared/release, not from the panel's request. - Runs the installer in
upgrademode for that version. - Writes status and log to
/var/lib/moorcp-shared/upgrade-state/(state.json,upgrade.log). The Updates page shows this status and the last lines of the log.
You do not need to run self-upgrade by hand. To follow an upgrade in progress:
journalctl -u moorcp-shared-upgrade -fINFO
The installer sets up the moorcp-shared-upgrade.path unit starting with v0.9.0-rc.22. Older panels need one upgrade from the command line first. See Upgrading.
moorcp-agent
Run agent commands as root on the hosting server. The moorcp-agent systemd service runs moorcp-agent serve with the env from /etc/moorcp-agent/env.
| Command | Purpose | Notes |
|---|---|---|
serve [--listen ADDR] [--state-dir DIR] | Runs the agent mTLS server and the heartbeat to the panel | Run by systemd. Defaults are :7443 and /var/lib/moorcp-agent |
enroll --panel URL --token TOKEN | Registers the server with the panel using a one-time token | See the options below |
bootstrap [--web-mode MODE] | Sets up the web server on a new server before enrollment | Called by the installer. Refused if the server already has websites |
setup OP [JSON] | Runs one setup operation without the panel | OP: pgsql.setup, adminneo.setup, phpmyadmin.setup, malware.setup, dns.node.setup. JSON result |
ops | Lists the allowed operations (allowlist) with their descriptions | Useful for diagnosing agent versions |
capabilities | Detects server capabilities (OS, CloudLinux, web server, services) as JSON | |
backup-password USERNAME | Prints an account's restic repository password | For checking backups by hand with restic |
hostcert issue [--domain HOST] [--email EMAIL] [--staging] | Issues a Let's Encrypt certificate for the server hostname (default: the OS hostname) with the built-in ACME client, then switches email, webmail, phpMyAdmin, and AdminNeo to it | Run by the installer. See Server hostname certificate |
hostcert renew | Renews the recorded hostnames that are due or not issued yet | The agent also does this itself twice a day |
hostcert status | Lists the managed hostnames and their expiry date | |
hostcert remove --domain HOST | Stops renewing a hostname. The certificate files are kept | For example the old name after Changing the hostname |
mail check, mail convert-mdbox | Checks a mailbox, or converts an account's mdbox mailboxes to Maildir | See Diagnostic commands |
app check | Checks an account's Node.js, Python, or Ruby app | See Diagnostic commands |
website check | Checks a domain's DNS, HTTP/HTTPS, certificate, and vhost on this server | See Diagnostic commands |
version | Prints the version and build |
Enroll options
| Option | Default | Description |
|---|---|---|
--panel URL | required | Panel URL, e.g. https://panel.example.com:8443 |
--token TOKEN | required | Registration token from Servers › Install command |
--listen ADDR | :7443 or MOORCP_AGENT_LISTEN | mTLS address reported to the panel |
--state-dir DIR | /var/lib/moorcp-agent | Where the agent keys, certificates, and identity are stored |
--panel-ca FILE | CA for a self-signed panel certificate | |
--force | Overwrite an existing registration |
After enrolling, start the service:
systemctl enable --now moorcp-agentBootstrap options
--web-mode accepts nginx-proxy (default), apache, nginx, or openlitespeed. For a server that already has websites, change the mode in the panel under Servers › server › Settings › Web server. See Web server modes.
Checking a backup by hand with restic
export RESTIC_PASSWORD="$(moorcp-agent backup-password jane)"restic -r sftp:backup@backup1.example.com:/backup/srv1.example.com/jane snapshotsThis command only reads the existing backup master key at /etc/moorcp/backup/master.key. Each hosting server has its own key. Keep a copy outside the server: without that key, the backups cannot be opened.
Installing PowerDNS without the panel
dns.node.setup is the same operation as the add-node button in Domains & DNS › Nameserver nodes. The installer runs it for --dns and for the dns mode. The operation is idempotent: existing zones and the API key are kept.
moorcp-agent setup dns.node.setupIt installs PowerDNS with an sqlite zone database on that server, an API only on 127.0.0.1:8081, and opens port 53 in firewalld. It is refused if port 53 is already used by another DNS service, or if /etc/pdns/pdns.conf already exists and was not written by MoorCP.
Operations called by the panel
moorcp-agent ops lists every operation the panel may call. The following operations belong to recently added features:
| Operation | Purpose | Triggered from |
|---|---|---|
dns.node.setup | Installs or reconfigures PowerDNS as a nameserver node | Domains & DNS › Nameserver nodes, installer --dns |
dns.node.status | Node status: service, API, PowerDNS version, number of zones | Nameserver nodes page |
dns.node.disable | Stops PowerDNS when the node is removed. Zone data is kept | Removing a node |
dns.pdns.api | Forwards one request to the local PowerDNS API. The API key never leaves the server | Zone management by the panel |
firewall.status | TCP/UDP ports and services open in the firewalld default zone, plus the protected ports | Security › Network & Access › Firewall ports |
firewall.open | Opens a port or port range (runtime and permanent) | Same tab |
firewall.close | Closes a port or port range. Protected ports are refused | Same tab |
softaculous.install | Installs the Softaculous core in the background | Softaculous card in Servers › server › Settings › Apps & tools |
softaculous.status | Softaculous integration state and install progress | Same card |
softaculous.license | Checks the Softaculous license: type, expiry, IP | Check license button |
agent.upgrade | Replaces the agent binary with the panel's copy (sha256 and version checked), then restarts the agent | Upgrade agents on the updates page |
firewall.enable, firewall.confirm | Installs and turns on firewalld with the required rules. A 90-second safety timer turns it off again unless the panel confirms over a new connection | Enable firewalld in the Firewall ports tab |
ssh.settings, ssh.settings.set | Separate SFTP/SSH port for clients and client password login | Servers › server › Settings › Apps & tools |
ssh.system_port.set | Changes the root SSH port, with rollback if sshd does not listen on it | Same section (SSH for root) |
ssh.password.set, ssh.password.clear, ssh.allow.set | A client's SFTP/SSH password and IP allowlist | Client panel, Cron & access |
db.remote.get, db.remote.set | Remote database hosts of an account: user copies and port 3306 firewall rules | Client panel, Database |
memcached.setup, memcached.status, memcached.enable, memcached.disable, memcached.flush, cache.status | Memcached per account and the Redis/Memcached state of the server | Redis and Memcached cards in Apps & tools |
mail.delivery.search | Searches the Postfix log for the delivery history (7 days max) | Track delivery |
mail.outbound | Outgoing email over IPv4, IPv6, or both | Servers › server › Settings › General |
mail.relay.get, mail.relay.set, mail.relay.test | Outgoing smarthost (SMTP relay): read it without its password, turn it on or off after a connection, TLS, and login test, or test it without saving | SMTP relay (smarthost) in Email & webmail |
webstats.pull, webstats.live, website.beacon | Visitor statistics from the access logs, the live view, and the optional beacon files | Statistics |
webserver.ols_tuning, webserver.ols_tuning.set | OpenLiteSpeed settings: workers, gzip/brotli, keep-alive, connection limits, HTTP/3 | OpenLiteSpeed settings in Web server |
phpmyadmin.settings, phpmyadmin.settings_set | PHP settings of the phpMyAdmin pool (upload size, memory, execution time, processes) | phpMyAdmin PHP settings in Apps & tools |
malware.yara, malware.scanner.state, malware.scanner.put, malware.scanner.apply | YARA rules, scanner settings, and custom signatures synced from the panel | Security › Scanner |
app.wp.sso, app.wp.settings | One-time WordPress login and WordPress settings | WordPress Manager |
backup.archive_restore, backup.ext_password | Restore from a portable archive in the account home, and the repository password of a client's own backup storage | Client panel, Backup |
migration.cpanel.scan, migration.cpanel.unpack, migration.cpanel.sync, migration.cpanel.cleanup | Finds cPanel backup files on the server, unpacks an archive once into staging, copies home and mail with rsync, and cleans up | Migration |
job.progress | Live progress of a long job | Jobs and migration pages |
agent.rename.prepare, agent.rename.commit | Changes the server hostname: a new key and certificate request, then the OS hostname and the new certificate (rolled back if it fails) | Change hostname in Danger zone |
softaculous.prune | Removes downloaded Softaculous app packages that are not on the Pre-Download list and not installed in any account (with a dry run) | Free disk space on the Softaculous card |
db.activity, db.kill, db.usage_raw, db.userstat | Running MariaDB and PostgreSQL queries, stopping a query or connection of an account user, per-account database counters, and turning those statistics on or off | Running queries in the server's Databases settings and the account's Database tab |
backup.browse, backup.forget | Lists a snapshot's folders, database dumps, and mailboxes for restore, and removes one snapshot | Restore dialog, Backup Center |
dav.setup, dav.status | Installs Calendars & Contacts (Radicale, CalDAV/CardDAV) on the server | Server setup, Email step |
webdisk.setup, webdisk.status, ftp.options | Turns on Web Disk (WebDAV) and sets the FTP / Web Disk / read-only access of a login | Server setup, FTP and SSH step; client Cron & access |
mail.domain.alias, mail.list.list, mail.list.set, mail.list.delete | Email for parked domains, and mailing lists | Client Websites and Email |
website.index.list, website.index.set, website.leech.set, leech.pull | Index Manager and leech protection | Client Websites |
website.finalize | Closes a batch of website and certificate installs for one account: one relabel and one web server reload | cPanel import |
migration.cpanel.pgsql, migration.cpanel.apps, migration.cpanel.listaccts | Imports PostgreSQL databases and runtime apps from a cPanel account, and lists the source accounts from /var/cpanel/users when WHM refuses | Migration |
Diagnostic commands
These commands replace one-off support scripts, like cPanel's /scripts/*. Run them as root on the hosting server. The check commands only read and are safe to run at any time. convert-mdbox changes mailboxes and is written to the agent log. Output is in English; set MOORCP_LANG=id for Indonesian.
| Command | What it shows or does |
|---|---|
moorcp-agent mail check <address> | The owning account, the mail directory, its format (Maildir or cPanel mdbox), the number of messages and subfolders, size, owner and SELinux label, what Dovecot (doveadm) sees, and a suggested fix |
moorcp-agent mail convert-mdbox <user> [address] [--dry-run] | Lists the account's mdbox mailboxes (--dry-run), or converts them (or one address) to Maildir. Same conversion as the automatic one during a cPanel import: compressed mdbox is read, Roundcube filters are kept, and the data is put back if the conversion fails |
moorcp-agent app check <user> [directory] | The account's Node.js, Python, or Ruby apps: URL, version, port, unit status, startup file (missing or empty), node_modules (directory, symlink, broken, or missing), an HTTP test to the app port, and the last 15 log lines |
moorcp-agent website check <domain> | Whether DNS points to this server, the local web server's HTTP and HTTPS answer for the domain, the certificate (names, validity, whether it covers the domain), the OpenLiteSpeed vhost (context, handler, external app address) and its latest OpenLiteSpeed errors, or the nginx server block file. It also checks webmail.<domain> |
Example:
moorcp-agent mail check info@myshop.comFor migrations and audit records, use moorctl migrate wave-report and moorctl audit.
Internal subcommands
The agent binary also has subcommands that are called by the agent itself or by system services: files-helper, cron-run, helper-relay, cpvendor, vendor, and helpers for apps and Git deploy. Do not run them by hand.
moorctl
moorctl calls the panel's API v1. It reads two variables:
| Variable | Value |
|---|---|
MOORCTL_URL | Panel URL, e.g. https://panel.example.com:8443 |
MOORCTL_API_KEY | An API key with a sufficient role (create it in the panel, see Authentication and API keys) |
export MOORCTL_URL=https://panel.example.com:8443 MOORCTL_API_KEY=API_KEYmoorctl servers listRun moorctl without arguments to see a usage summary. Some groups (files, email, dns, backup, migrate, cron) print their own help when run without arguments. The --wait option waits for the job to finish, then prints the result.
Servers
| Command | Purpose |
|---|---|
token create | Creates a server registration token, then prints the enroll command |
servers list | Lists servers: ID, hostname, OS, driver, status, agent address, last seen |
servers verify <id> | Runs server verification. Exit code 3 if it does not pass yet |
servers ping <id> [--echo text] | Tests the mTLS connection to the agent |
servers set <id> [--driver d] [--web-server m] | Changes the isolation driver setting (cloudlinux, generic, litespeed-containers) or the recorded web server mode |
servers webserver-preflight <id> <mode> | Pre-flight for a web server mode change. Exit code 3 if there are blockers |
servers webserver-switch <id> <mode> [--wait] | Changes the web server mode |
servers webserver-setup <id> | Sets up the web server on the server |
servers isolation-setup <id> | Isolation hardening: /home 0711, /proc hidepid, fstab |
servers reapply-websites <id> | Re-renders every vhost with the latest templates |
servers reapply-limits <id> | Reapplies the resource limits of every account |
servers phpmyadmin-setup <id> [hostname] | Installs phpMyAdmin at https://<hostname>/pma/ |
Packages and accounts
| Command | Purpose |
|---|---|
packages list | Lists packages |
packages create -f package.json | Creates a package from a JSON file (same format as POST /v1/packages) |
accounts list | Lists accounts |
accounts get <id> | Account details (JSON) |
accounts create --username u --domain d --package p [--server s] [--client c] [--idempotency-key k] [--wait] | Creates an account. Without --server, the panel picks the server |
accounts suspend <id> --reason r [--wait] | Suspends an account |
accounts unsuspend <id> [--wait] | Reactivates an account |
accounts change-package <id> --package p [--wait] | Changes the package |
accounts terminate <id> --reason r [--grace-days n] [--wait] | Terminates an account with a grace period |
accounts access <id> --reason r [options] | Sets access: --manage, --sftp, --ftp, --email, --remote-db, --app-install (boolean, e.g. --sftp=false) |
jobs get <id> | Job details (JSON) |
jobs wait <id> | Waits for a job to finish (5 minutes max) |
Websites and databases
| Command | Purpose |
|---|---|
websites list [--account id] | Lists websites |
websites create --account id --domain d [--docroot p] [--php v] [--force-https] [--no-www] [--no-static-proxy] [--wait] | Creates a website |
websites ssl-issue <id> [--wildcard] [--wait] | Issues a Let's Encrypt certificate. --wildcard adds *.<domain> through DNS-01 |
websites ssl-install <id> --cert f --key f [--wait] | Installs your own certificate (PEM) |
db list <acc> | Lists databases and users |
db create <acc> <name> / db drop <acc> <name> | Creates or deletes a database |
db user-create <acc> <user> --password p [--host h] | Creates a database user |
db user-drop <acc> <user> [--host h] | Deletes a database user |
db user-password <acc> <user> --password p [--host h] | Changes a user's password |
db grant <acc> <db> <user> [--privilege all|readonly] [--host h] | Grants access |
db revoke <acc> <db> <user> | Revokes access |
db phpmyadmin <acc> | Creates a one-time phpMyAdmin login link |
Files, email, and DNS
| Group | Commands |
|---|---|
files | ls, stat, cat, write, mkdir, rename, cp, mv, rm (to Trash, --permanent to delete permanently), trash (restore, empty), chmod, fix-perms, search, archive, extract, upload, download, link |
email | setup <server-id>, list, domain-enable, domain-disable, mailbox-create, mailbox-delete, mailbox-password, mailbox-quota, alias-set, alias-delete |
dns | info, zones, zone-create, zone-get, zone-delete, record-set, record-delete, templates, zone-template (preview, --apply to apply), zone-export (BIND format), cluster [--sync] |
Backup
| Command | Purpose |
|---|---|
backup destinations | Lists backup destinations |
backup policies | Lists policies |
backup policy-create --name n --destination d [options] | New policy. Options: --at HH:MM (UTC, default 02:00), --weekdays, --keep-last, --keep-daily (7), --keep-weekly (4), --keep-monthly (3), --scope (default files,databases,mail), --default, --disabled |
backup policy-update <id> / policy-delete <id> | Changes or deletes a policy |
backup status <acc> | The account's effective policy, destination, and last job |
backup assign <acc> <policy-id|none> | Assigns a policy to an account |
backup run <acc> [--destination d] [--wait] | Manual backup |
backup snapshots <acc> [--destination d] | Lists snapshots |
backup restore <acc> <snapshot> --kind files|database|mailbox|full [options] | Restore. Options: --path, --database, --mailbox, --new-location, --destination, --wait |
backup check <acc> [--wait] | Verifies repository integrity |
backup history <acc> | The account's backup history |
Cron, FTP, and SSH
| Command | Purpose |
|---|---|
cron list <acc> | Lists cron jobs |
cron create <acc> "<schedule>" "<command>" [--disabled] [--comment c] | Creates a cron job |
cron update <acc> <job-id> "<schedule>" "<command>" / cron delete <acc> <job-id> | Changes or deletes one |
cron history <acc> <job-id> [--limit n] / cron run <acc> <job-id> | History, or run now |
ftp setup <server-id> | Sets up Pure-FTPd on the server |
ftp list <acc> / ftp create <acc> <login> --password p [--dir d] | Lists and creates FTP accounts |
ftp delete <acc> <login> / ftp password <acc> <login> --password p | Deletes one or changes its password |
ssh setup <server-id> | Sets up jailed SSH on the server |
ssh keys <acc> / ssh add <acc> --name n (-f key.pub | --key "...") / ssh remove <acc> <key-id> | Manages SSH keys |
cPanel migration
| Command | Purpose |
|---|---|
migrate inspect --server s --archive /path/cpmove-user.tar.gz | Inspects a cPanel archive |
migrate cpanel --server s --archive /path --package p [--client c] [--username u] [--domain d] [--skip dns,mail] [--no-replace-ip] [--wait] | Imports one archive. --wait waits up to 24 hours |
migrate report <job-id> | Import report |
migrate source-add --name n --host h [--port 22] [--user root] -i key [--map plan=pkg-id] [--default-package p] | Registers a source cPanel server |
migrate sources / source-delete <id> / remote-accounts <source-id> --server s | Manages sources and lists their accounts |
migrate wave-create / wave-start <wave-id> [--auto-cutover [--suspend-source] [--skip-source-dns] | --manual-cutover] [--wait] / wave <wave-id> | Migration waves. --auto-cutover makes each account go live as soon as its import succeeds; --manual-cutover turns that off |
migrate ttl, sync, checks, cutover, propagation | Per-account steps: lower TTL, re-sync (final sync; sync <wave-id> <cpuser> [--scope home,mail,databases] [--no-delete] copies only those parts; --no-delete keeps files that no longer exist on the source), tests, go-live (cutover), propagation monitoring |
migrate wave-sync <wave-id> / wave-cutover <wave-id> | The same steps for every account in a wave |
The full flow is in Importing from cPanel.
Migration reports and audit
| Command | Purpose |
|---|---|
migrate wave-report <wave-id> [cpuser] [--json] | Without cpuser: a wave summary (status, import duration, and the failing import step per account). With cpuser (or an account ID): every import step of that account with status, counts, duration, messages, per-item errors, manual steps, warnings, and the last re-sync, tests, and go-live |
audit <username> [--since 2h] [--action prefix] [--limit 100] | An account's audit records: time, action, result, actor, and details. --action website. or --action migration. filters by action prefix |
moorctl migrate wave-report WAVE_ID janemoorctl audit jane --since 2h