Reference
WP-CLI reference
Swiftkeep commands for WP-CLI, including licence, background jobs, restore points and each module.
Swiftkeep adds a swiftkeep command to WP-CLI. Run wp help swiftkeep on your site for the full list in your version, including any commands added by the modules in your plan.
wp swiftkeep status
Shows the licence state and plan, and for each module whether your plan includes it, whether it is on, and its status.
wp swiftkeep status
wp swiftkeep status --format=json| Option | Meaning |
|---|---|
--format=<format> | table (the default) or json |
wp swiftkeep licence
Connects, refreshes or disconnects this site's licence.
wp swiftkeep licence activate YOUR-LICENCE-KEY
wp swiftkeep licence refresh
wp swiftkeep licence deactivate| Action | What it does |
|---|---|
activate <key> | Binds this site to the licence and fetches its entitlements |
refresh | Fetches a fresh entitlement token now, for example after changing plan |
deactivate | Releases this site's slot on the licence |
wp swiftkeep work
Runs queued background jobs, such as backups and scans, until none are left, printing progress as it goes. From the command line there is no web request to time out, so jobs run straight through.
wp swiftkeep work
wp swiftkeep work --max-seconds=240| Option | Meaning |
|---|---|
--max-seconds=<seconds> | Stop after this long. The default is 3600 |
On a host where WordPress cron is unreliable, run it from the system's cron so jobs never wait for a visitor:
*/5 * * * * wp --path=/path/to/wordpress swiftkeep work --max-seconds=240wp swiftkeep backup
Available when your plan includes Backups.
backup run
Makes a backup now and follows it to the end.
wp swiftkeep backup run
wp swiftkeep backup run --components=database --destinations=none
wp swiftkeep backup run --incremental --label="Before redesign"| Option | Meaning |
|---|---|
--components=<list> | Comma-separated: database, plugins, themes, uploads, others, core, extra. Default: what is switched on in settings |
--destinations=<list> | Comma-separated destination IDs such as managed, s3 or sftp, or none to keep the backup on this server only. Default: every connected destination |
--incremental | Only files that are new or changed since the last full backup |
--anonymise | Scrub personal data from the database copy |
--label=<label> | A note shown beside the backup |
backup list
wp swiftkeep backup list
wp swiftkeep backup list --format=csvLists backups with their IDs, sizes and where each is stored. --format accepts table, json, csv or ids.
backup restore
wp swiftkeep backup restore BACKUP-ID
wp swiftkeep backup restore BACKUP-ID --components=database --yes| Option | Meaning |
|---|---|
<id> | The backup ID, from backup list |
--components=<list> | Parts to restore. Default: everything in the backup |
--passphrase=<passphrase> | For an encrypted database backup made with a different passphrase from the one stored on this site |
--[no-]safety-backup | Save a copy before replacing files or data so you can undo the restore. On by default |
--yes | Do not ask for confirmation |
backup verify, download and delete
wp swiftkeep backup verify BACKUP-ID
wp swiftkeep backup download BACKUP-ID --dir=/path/to/folder
wp swiftkeep backup delete BACKUP-ID --yes| Command | What it does |
|---|---|
verify <id> | Checks the backup's files on this server against its manifest |
download <id> [--dir=<dir>] | Copies the backup's files to a folder, fetching them from remote storage if they are not on this server. Default: the current folder |
delete <id> [--yes] | Deletes the backup on this server and in remote storage |
Restore points and module commands
| Command | What it does |
|---|---|
wp swiftkeep restore-points | List restore points and undo a saved change |
wp swiftkeep security | Manage the firewall, scans, findings, vulnerabilities, lockouts, two-step sign-in and passkeys |
wp swiftkeep speed | Check Speed's status, purge or preload the cache, convert images to WebP and clean the database |
wp swiftkeep tracking | Check or switch Tracking, manage the event queue, test platforms and transfer settings |
wp swiftkeep forms | Manage forms, fields, entries, notifications, confirmations, capabilities and API keys |
Written for Swiftkeep 2.1.6. Under white label, the plugin shows your agency's name where this guide says Swiftkeep.