Skip to content

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.

BinaryLocationInstalled onPurpose
moorcp-shared/usr/local/bin/moorcp-sharedpanel serverControl plane: panel service, database migrations, staff, license, panel backup, upgrades from the panel
moorcp-agent/usr/local/bin/moorcp-agentevery hosting serverAgent: registration with the panel, web server setup, local operations, diagnostic checks
moorctl/usr/local/bin/moorctlpanel serverAPI 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):

bash
set -a; . /etc/moorcp-shared/env; set +a; runuser -u moorcp --preserve-environment -- /usr/local/bin/moorcp-shared staff list

Replace 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:

bash
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 ​

CommandPurposeNotes
serveRuns 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
versionPrints the version and build
migrate upRuns every database migration that has not run yetRun 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 mTLSRun 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 accountRoles: admin (default), technician, support
staff passwd --email EChanges a staff passwordAll sessions of that staff member are revoked
staff reset-2fa --email EResets a staff member's 2FAThe staff member sets up 2FA again at the next login
staff listLists staff: email, name, role, 2FA status, disabled
secrets statusInventory of stored secrets and data keys, without valuesJSON output
secrets rotateCreates a new data key and re-encrypts every secretJSON output
license statusLicense status: Instance ID, plan, account/server usage, validity
license instance-idPrints the Instance ID of this installationSend 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 FILEInstalls a license token from a file. Use - to read from stdinA running panel uses the new token right away
license removeRemoves the license token
panel-backup statusPanel backup status (JSON)
panel-backup runRuns a panel backup nowNeeds an off-host destination to be selected
panel-backup kit FILEWrites the recovery kit to FILE (mode 0600)Store it outside the panel server
panel-backup snapshots --kit FILELists the snapshots in the kit's repositoryDoes 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-upgradeRuns an upgrade request made from the panelMust 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 hooksMust run as root. Run by the installer. --staging uses the Let's Encrypt test CA. See SSL for the panel hostname
hostcert renewRenews the recorded hostnames that are due (less than 30 days left) or not issued yetMust run as root. Run twice a day by moorcp-hostcert.timer
hostcert statusLists the managed hostnames and their expiry date
hostcert remove --domain HOSTStops renewing a hostname. The certificate files are keptMust 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:

bash
MOORCP_LANG=id /usr/local/bin/moorcp-agent ops

The 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:

bash
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:

bash
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:

bash
(set -a; . /etc/moorcp-shared/env; set +a; runuser -u moorcp --preserve-environment -- /usr/local/bin/moorcp-shared license install -) < license-token.txt

Or activate it from the license server, with a key from member.moorcp.com:

bash
(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:

  1. Install a new panel on the replacement server with the installer.

  2. Stop the service:

    bash
    systemctl stop moorcp-shared
  3. List 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.json
  4. Restore:

    bash
    /usr/local/bin/moorcp-shared panel-backup restore --kit /root/recovery-kit.json
  5. Run the migrations, then start the panel:

    bash
    set -a; . /etc/moorcp-shared/env; set +a; runuser -u moorcp --preserve-environment -- /usr/local/bin/moorcp-shared migrate up
    bash
    systemctl start moorcp-shared
  6. Point 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:

  1. Reads and deletes the request file. If there is no request, the command exits without doing anything.
  2. Verifies the signatures of the release index, SHA256SUMS, and the install.sh of 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.
  3. Runs the installer in upgrade mode for that version.
  4. 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:

bash
journalctl -u moorcp-shared-upgrade -f

INFO

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.

CommandPurposeNotes
serve [--listen ADDR] [--state-dir DIR]Runs the agent mTLS server and the heartbeat to the panelRun by systemd. Defaults are :7443 and /var/lib/moorcp-agent
enroll --panel URL --token TOKENRegisters the server with the panel using a one-time tokenSee the options below
bootstrap [--web-mode MODE]Sets up the web server on a new server before enrollmentCalled by the installer. Refused if the server already has websites
setup OP [JSON]Runs one setup operation without the panelOP: pgsql.setup, adminneo.setup, phpmyadmin.setup, malware.setup, dns.node.setup. JSON result
opsLists the allowed operations (allowlist) with their descriptionsUseful for diagnosing agent versions
capabilitiesDetects server capabilities (OS, CloudLinux, web server, services) as JSON
backup-password USERNAMEPrints an account's restic repository passwordFor 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 itRun by the installer. See Server hostname certificate
hostcert renewRenews the recorded hostnames that are due or not issued yetThe agent also does this itself twice a day
hostcert statusLists the managed hostnames and their expiry date
hostcert remove --domain HOSTStops renewing a hostname. The certificate files are keptFor example the old name after Changing the hostname
mail check, mail convert-mdboxChecks a mailbox, or converts an account's mdbox mailboxes to MaildirSee Diagnostic commands
app checkChecks an account's Node.js, Python, or Ruby appSee Diagnostic commands
website checkChecks a domain's DNS, HTTP/HTTPS, certificate, and vhost on this serverSee Diagnostic commands
versionPrints the version and build

Enroll options ​

OptionDefaultDescription
--panel URLrequiredPanel URL, e.g. https://panel.example.com:8443
--token TOKENrequiredRegistration token from Servers › Install command
--listen ADDR:7443 or MOORCP_AGENT_LISTENmTLS address reported to the panel
--state-dir DIR/var/lib/moorcp-agentWhere the agent keys, certificates, and identity are stored
--panel-ca FILECA for a self-signed panel certificate
--forceOverwrite an existing registration

After enrolling, start the service:

bash
systemctl enable --now moorcp-agent

Bootstrap 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 ​

bash
export RESTIC_PASSWORD="$(moorcp-agent backup-password jane)"
bash
restic -r sftp:backup@backup1.example.com:/backup/srv1.example.com/jane snapshots

This 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.

bash
moorcp-agent setup dns.node.setup

It 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:

OperationPurposeTriggered from
dns.node.setupInstalls or reconfigures PowerDNS as a nameserver nodeDomains & DNS › Nameserver nodes, installer --dns
dns.node.statusNode status: service, API, PowerDNS version, number of zonesNameserver nodes page
dns.node.disableStops PowerDNS when the node is removed. Zone data is keptRemoving a node
dns.pdns.apiForwards one request to the local PowerDNS API. The API key never leaves the serverZone management by the panel
firewall.statusTCP/UDP ports and services open in the firewalld default zone, plus the protected portsSecurity › Network & Access › Firewall ports
firewall.openOpens a port or port range (runtime and permanent)Same tab
firewall.closeCloses a port or port range. Protected ports are refusedSame tab
softaculous.installInstalls the Softaculous core in the backgroundSoftaculous card in Servers › server › Settings › Apps & tools
softaculous.statusSoftaculous integration state and install progressSame card
softaculous.licenseChecks the Softaculous license: type, expiry, IPCheck license button
agent.upgradeReplaces the agent binary with the panel's copy (sha256 and version checked), then restarts the agentUpgrade agents on the updates page
firewall.enable, firewall.confirmInstalls and turns on firewalld with the required rules. A 90-second safety timer turns it off again unless the panel confirms over a new connectionEnable firewalld in the Firewall ports tab
ssh.settings, ssh.settings.setSeparate SFTP/SSH port for clients and client password loginServers › server › Settings › Apps & tools
ssh.system_port.setChanges the root SSH port, with rollback if sshd does not listen on itSame section (SSH for root)
ssh.password.set, ssh.password.clear, ssh.allow.setA client's SFTP/SSH password and IP allowlistClient panel, Cron & access
db.remote.get, db.remote.setRemote database hosts of an account: user copies and port 3306 firewall rulesClient panel, Database
memcached.setup, memcached.status, memcached.enable, memcached.disable, memcached.flush, cache.statusMemcached per account and the Redis/Memcached state of the serverRedis and Memcached cards in Apps & tools
mail.delivery.searchSearches the Postfix log for the delivery history (7 days max)Track delivery
mail.outboundOutgoing email over IPv4, IPv6, or bothServers › server › Settings › General
mail.relay.get, mail.relay.set, mail.relay.testOutgoing smarthost (SMTP relay): read it without its password, turn it on or off after a connection, TLS, and login test, or test it without savingSMTP relay (smarthost) in Email & webmail
webstats.pull, webstats.live, website.beaconVisitor statistics from the access logs, the live view, and the optional beacon filesStatistics
webserver.ols_tuning, webserver.ols_tuning.setOpenLiteSpeed settings: workers, gzip/brotli, keep-alive, connection limits, HTTP/3OpenLiteSpeed settings in Web server
phpmyadmin.settings, phpmyadmin.settings_setPHP 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.applyYARA rules, scanner settings, and custom signatures synced from the panelSecurity › Scanner
app.wp.sso, app.wp.settingsOne-time WordPress login and WordPress settingsWordPress Manager
backup.archive_restore, backup.ext_passwordRestore from a portable archive in the account home, and the repository password of a client's own backup storageClient panel, Backup
migration.cpanel.scan, migration.cpanel.unpack, migration.cpanel.sync, migration.cpanel.cleanupFinds cPanel backup files on the server, unpacks an archive once into staging, copies home and mail with rsync, and cleans upMigration
job.progressLive progress of a long jobJobs and migration pages
agent.rename.prepare, agent.rename.commitChanges 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.pruneRemoves 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.userstatRunning MariaDB and PostgreSQL queries, stopping a query or connection of an account user, per-account database counters, and turning those statistics on or offRunning queries in the server's Databases settings and the account's Database tab
backup.browse, backup.forgetLists a snapshot's folders, database dumps, and mailboxes for restore, and removes one snapshotRestore dialog, Backup Center
dav.setup, dav.statusInstalls Calendars & Contacts (Radicale, CalDAV/CardDAV) on the serverServer setup, Email step
webdisk.setup, webdisk.status, ftp.optionsTurns on Web Disk (WebDAV) and sets the FTP / Web Disk / read-only access of a loginServer setup, FTP and SSH step; client Cron & access
mail.domain.alias, mail.list.list, mail.list.set, mail.list.deleteEmail for parked domains, and mailing listsClient Websites and Email
website.index.list, website.index.set, website.leech.set, leech.pullIndex Manager and leech protectionClient Websites
website.finalizeCloses a batch of website and certificate installs for one account: one relabel and one web server reloadcPanel import
migration.cpanel.pgsql, migration.cpanel.apps, migration.cpanel.listacctsImports PostgreSQL databases and runtime apps from a cPanel account, and lists the source accounts from /var/cpanel/users when WHM refusesMigration

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.

CommandWhat 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:

bash
moorcp-agent mail check info@myshop.com

For 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:

VariableValue
MOORCTL_URLPanel URL, e.g. https://panel.example.com:8443
MOORCTL_API_KEYAn API key with a sufficient role (create it in the panel, see Authentication and API keys)
bash
export MOORCTL_URL=https://panel.example.com:8443 MOORCTL_API_KEY=API_KEY
bash
moorctl servers list

Run 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 ​

CommandPurpose
token createCreates a server registration token, then prints the enroll command
servers listLists 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 ​

CommandPurpose
packages listLists packages
packages create -f package.jsonCreates a package from a JSON file (same format as POST /v1/packages)
accounts listLists 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 ​

CommandPurpose
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 ​

GroupCommands
filesls, 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
emailsetup <server-id>, list, domain-enable, domain-disable, mailbox-create, mailbox-delete, mailbox-password, mailbox-quota, alias-set, alias-delete
dnsinfo, 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 ​

CommandPurpose
backup destinationsLists backup destinations
backup policiesLists 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 ​

CommandPurpose
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 pDeletes 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 ​

CommandPurpose
migrate inspect --server s --archive /path/cpmove-user.tar.gzInspects 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 sManages 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, propagationPer-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 ​

CommandPurpose
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
bash
moorctl migrate wave-report WAVE_ID jane
bash
moorctl audit jane --since 2h

See also ​

MoorCP Shared, a shared hosting panel for server fleets.