cli
v2.14.0Official CLI + MCP server for Saplo hosting platform - 70 tools for Claude Code, Codex and Claude Desktop: one-call install of 100+ catalog apps, deploy, env…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
saplo_list_apps
List all applications in your Saplo account. Returns id, name, stack, status, url, izolbox_id (the Box the app lives on). ALWAYS call this FIRST when the user asks for any action on "their app/site/box" without specifying which - if the result has 2+ entries (or 2+ distinct izolbox_id values), you MUST ASK the user which one before doing anything mutating. Never silently pick the first one.
saplo_get_app
Get details for a specific application including its current deployment, env count, and domains.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | Application ID (use saplo_list_apps to find). |
saplo_box_list
List ALL Boxes (Izolboxes) in the user's Saplo account with id, name, plan and status - INCLUDING empty Boxes that contain no apps yet. Use this to find the izolbox_id for saplo_create_app, especially when the user owns more than one Box or wants to deploy onto a specific/empty Box (saplo_list_apps only reveals Boxes that already hold apps, so empty Boxes like a fresh Box XXL are invisible there). When the user owns 2+ active Boxes you MUST call this and ASK which Box before creating an app.
saplo_create_app
Create a new Saplo application. Returns app id, url and access credentials. Two ways: (1) a ready-made app from the catalog (Uptime Kuma, Ghost, Vaultwarden, Nextcloud and 100+ others) - pass app_type from saplo_catalog_list or saplo_catalog_suggest, never invent it; (2) a framework stack for the user's own code: wordpress, nextjs, react, vue, svelte, nuxt, sveltekit, angular, django, static, docker, node, astro, n8n. Gotowe stacki to SKROT dla aplikacji z jednej technologii - nie sa granica tego, co Saplo uruchomi. Zestaw wielu uslug naraz (np. django + nextjs + postgres + redis), nietypowa t…
| Parameter | Type | Description |
|---|---|---|
name * | string | App slug (lowercase, digits, hyphens). Example: "my-portfolio". |
app_type | string | Catalog app id (e.g. "uptime-kuma", "ghost", "vaultwarden") from saplo_catalog_list / saplo_catalog_suggest. Use INSTEAD of stack for ready-made apps. The server rejects ids that are not in the catalo… |
izolbox_id | integer | Target Box ID. REQUIRED when the user owns 2+ active Boxes - never guess. Omit ONLY when the user has exactly one Box (then server picks it). |
stack | string | Technology stack. Gdy projekt laczy kilka technologii albo potrzebuje wlasnej bazy - wybierz "docker" i przywiez wlasny docker-compose.yml. |
saplo_git_status
Get the Git/GitHub connection status for an app: whether a repo is connected, repo full name, default branch, auto_deploy flag, webhook presence, GitHub App installation id. Use to check before connecting or to confirm auto-deploy is on.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | Application ID (use saplo_list_apps to find). |
saplo_git_connect
Start connecting a GitHub repo to an app for auto-deploy. If the user has not yet installed the Saplo GitHub App, this returns an install_url the user MUST open in a browser to grant access (you cannot do it for them). After they install, call saplo_git_repos to list repos, then saplo_git_set_repo to pick one.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | Application ID. |
saplo_git_repos
List GitHub repositories available from the connected Saplo GitHub App installation for this app. Use after the user installed the App (saplo_git_connect) so they can pick which repo deploys the app.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | Application ID. |
saplo_git_set_repo
Set which GitHub repo and branch deploy this app, and toggle auto-deploy on push. repo_full_name is "owner/repo". Once set with auto_deploy=true, every push to the branch triggers a deploy automatically.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | Application ID. |
repo_full_name * | string | GitHub repository "owner/repo". |
auto_deploy | boolean | Deploy automatically on every push (default: true). |
default_branch | string | Branch to deploy (default: main). |
saplo_git_disconnect
Disconnect the Git repo from an app (stops auto-deploy on push). Does not delete the app or its current deployment.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | Application ID. |
saplo_git_deploy_key
Generate a Deploy Key + webhook URL for connecting a non-GitHub repo (GitLab, Bitbucket, self-hosted Git) for auto-deploy. Returns the public SSH key to add as a deploy key on the repo, and the webhook URL to register for push events.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | Application ID. |
saplo_deploy
Deploy a local directory to Saplo by packaging it as a tarball and uploading directly - NO GitHub required. Works like `saplo deploy` CLI command. Reads saplo.yaml from the project directory to get stack/name/build config. If app_id is not provided, it is resolved from saplo.yaml app_id field or .saplo/project.json in the project directory. Returns deployment_id and final status after polling (up to 2 minutes); if the build takes longer, use saplo_deployment_status to track it. Call saplo_validate_manifest first to catch config errors early.
| Parameter | Type | Description |
|---|---|---|
app_id | integer | Application ID to deploy to. If omitted, resolved from saplo.yaml app_id or .saplo/project.json in the project directory. Use saplo_list_apps to find the id. |
path | string | Absolute path to the project directory containing saplo.yaml. Defaults to process working directory if omitted. |
saplo_deployment_status
Get the current status of a deployment (queued, building, releasing, running, failed, cancelled, rolled_back).
| Parameter | Type | Description |
|---|---|---|
deployment_id * | integer |
saplo_logs
Get the most recent build/runtime log lines for a deployment. HTTP polling - for live streaming use WebSocket (coming in v2.3).
| Parameter | Type | Description |
|---|---|---|
deployment_id * | integer | |
since | string | ISO timestamp - return only logs after this time. Optional. |
saplo_rollback
Roll back to a previous deployment (or the last stable one if deployment_id omitted). Returns the now-live deployment id. Destructive - confirm with user first. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
deployment_id | integer | Optional - specific deployment to roll back to. |
saplo_restart
Restart an application process (no rebuild). If the app is stopped, this also starts it. Destructive - confirm with user first. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer |
saplo_stop
Stop (turn off) an application - the site goes offline until started again. Data, files and config are preserved. For a module app this stops its process (supervisor); the rest of the Box keeps running. Destructive - confirm with user first. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer |
saplo_start
Start (turn on) a stopped application so it serves traffic again. No rebuild. If the app is already running, this is a no-op. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer |
saplo_php_list
List available and current PHP versions for a WordPress app. Available versions depend on the WP variant: "modern" (Alpine) supports only 8.3, "legacy" (Debian) supports 7.4-8.4. ALWAYS call this before saplo_php_set so you offer only valid versions. If user owns 2+ apps and did not specify which, ASK first.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer |
saplo_php_set
Change the PHP version of a WordPress app (queues the change). Only versions returned by saplo_php_list are allowed for that app/variant - setting an unavailable version is rejected. Destructive-ish (restarts PHP). If user owns 2+ apps and did not specify which, ASK first.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
version * | string | Target PHP version, e.g. "8.2". Must be in saplo_php_list output. |
saplo_python_list
List the current Python and Django versions of a Django app together with the versions that can be set. Django 6 requires Python 3.12 or newer, so Python 3.11 always gets Django 5.x (see django_major_by_python). python_version and django_version can be null when the platform has not recorded them yet - then the app runs on an unknown version and the first saplo_python_set writes both fields. ALWAYS call this before saplo_python_set so you offer only valid combinations. If user owns 2+ apps and did not specify which, ASK first.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | Application ID (Django app). |
saplo_python_set
Change the Python version of a Django app (queues the change, rebuilds the venv, restarts the app, rolls back automatically on error). python_version must be one of the versions from saplo_python_list. django_version is OPTIONAL: omit it to get the newest Django compatible with the chosen Python (Python 3.11 gets Django 5.x, Python 3.12+ gets Django 6.x); give it only when the user asks for a specific Django version (major.minor or major.minor.patch). Takes 1 to 3 minutes. Destructive-ish - confirm with the user first. If user owns 2+ apps and did not specify which, ASK first.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | Application ID (Django app). |
python_version * | string | Target Python version, e.g. "3.14". Must be in saplo_python_list output. |
django_version | string | Optional target Django version, e.g. "6.1" or "6.1.2". Omit for the newest compatible Django. |
saplo_env_get
List environment variables for an application. Secret values are hidden, only keys returned.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer |
saplo_env_set
Create or update environment variables for an application. Pass {KEY: "value"} pairs. Triggers redeploy on next app boot. Destructive - confirm with user. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
vars * | object | Key-value map of plaintext values. |
is_secret | boolean | Store as secret: value is never returned by the panel, API or this tool (shown as ***), only the app receives it at runtime. Use for API keys, tokens and passwords. A secret stays secret when its valu… |
saplo_env_mark_secret
Mark an existing environment variable as secret without re-entering its value. One-way: a secret cannot be turned back into a plain variable. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
key * | string | |
target | string | Default runtime. |
saplo_env_unset
Delete a single environment variable by key. Destructive - confirm with user first. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
key * | string |
saplo_domain_list
List all custom domains attached to an application with their verification status.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer |
saplo_domain_add
Add a custom domain to an application. Returns DNS records (A/CNAME) the user needs to set at their registrar. SSL via Let's Encrypt is provisioned automatically. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
domain * | string | Fully qualified domain. Example: "example.com" or "www.example.com". |
saplo_validate_manifest
Validate a saplo.yaml manifest. Returns ALL errors with path and actionable hints (not just first). Call BEFORE saplo_deploy to catch problems early. Empty errors list means the manifest is valid.
| Parameter | Type | Description |
|---|---|---|
manifest * | string | Full YAML source of saplo.yaml as a string. |
saplo_init_scaffold
Generate a ready-to-edit saplo.yaml manifest + .saploignore for the given stack. The manifest contains inline comments to guide further edits. Use this when starting a new app. Allowed stacks: wordpress, nextjs, react, vue, svelte, nuxt, sveltekit, angular, django, static, docker, node, astro, n8n.
| Parameter | Type | Description |
|---|---|---|
name * | string | App slug (lowercase letters, digits, hyphens). |
stack * | string |
saplo_list_plans
List available Saplo hosting plans with prices (PLN/year), RAM/SSD/CPU limits, and feature flags (ssh, mail, backups). Public data - useful BEFORE saplo_create_app to pick the right plan.
saplo_box_capacity
How much still fits in a Box: free RAM (MB), free disk (GB), number of apps vs plan limit, and whether one more app fits (with the reasons if not). Apps share Box resources, so use THIS before saplo_create_app instead of adding up ram_mb of existing apps.
| Parameter | Type | Description |
|---|---|---|
izolbox_id * | integer | Box ID from saplo_box_list. |
saplo_catalog_list
List ready-made apps the user can deploy with one call (100+: monitoring, CMS, password managers, analytics, AI tools, automation, files...). Each item has app_type (pass it to saplo_create_app), what it is for, minimum RAM/disk and whether it needs a database (provided automatically). Filter by kategoria id or szukaj (free text, Polish or English).
| Parameter | Type | Description |
|---|---|---|
kategoria | string | Category id from the "kategorie" list in a previous call. |
szukaj | string | Free-text filter, e.g. "monitoring", "sklep", "hasla". |
saplo_catalog_suggest
Suggest catalog apps for a need described in the user's own words (e.g. "chce wiedziec, kiedy moja strona przestaje dzialac"). Returns matching app_types with a short description. Use when the user describes a problem rather than naming a product.
| Parameter | Type | Description |
|---|---|---|
opis * | string | The need, in the user's words. |
saplo_port_list
List external ports mapped to an application (HTTPS subdomains and raw TCP/UDP). Shows external_port, internal_port, kind, status.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer |
saplo_port_add
Add an external port mapping. Two kinds: "web" gives a subdomain on saploapp.pl with HTTPS (for HTTP apps like n8n, Portainer), "tcp" gives a raw TCP/UDP port on srv1.saploapp.pl (for MQTT, game servers). Limits per plan. Async - check status via saplo_port_list. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
internal_port * | integer | Port wewnatrz kontenera (np. 5678 dla n8n). |
kind * | string | |
description | string |
saplo_port_remove
Remove an external port mapping (cleans up CF DNS, NPM proxy host, iptables). Destructive - confirm with user first. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
port_id * | integer |
saplo_dns_zone_list
List your DNS zones hosted on Saplo PowerDNS (ns1/ns2.saplo.pl).
saplo_dns_zone_add
Create a new DNS zone in Saplo PowerDNS. Returns nameservers (ns1/ns2.saplo.pl) - user must set them at their domain registrar.
| Parameter | Type | Description |
|---|---|---|
name * | string | Domain name, e.g. "example.pl". |
saplo_dns_record_add
Add a DNS record (A/AAAA/MX/CNAME/TXT/NS/SRV/CAA) to a zone. Name "@" means root domain.
| Parameter | Type | Description |
|---|---|---|
content * | string | Record value. For MX use "10 mail.example.pl", for A use IPv4. |
name * | string | Record name. "@" or "" for root, "www" for subdomain. |
type * | string | |
zone * | string | Zone name, e.g. "example.pl". |
ttl | integer |
saplo_dns_record_remove
Remove a DNS record from a zone by name+type. Removes ALL records of that name+type combination.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
type * | string | |
zone * | string |
saplo_mail_list
List mailboxes for a domain that user owns. Domain must be added in Mailcow via panel first.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Mail domain, e.g. "example.pl". |
saplo_mail_account_create
Create a mailbox. Password min 8 chars. quota_mb default 1024 (1 GB). Limits per plan: HostingPlan.max_mailboxes.
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
local_part * | string | Part before @, e.g. "kontakt". |
password * | string | |
name | string | Display name (optional). |
quota_mb | integer |
saplo_mail_account_delete
Delete a mailbox by email. Destructive - confirm with user first.
| Parameter | Type | Description |
|---|---|---|
email * | string |
saplo_mail_alias_add
Create a mail alias (forwarding). "goto" can be one email or comma-separated list (acts as a mailing list).
| Parameter | Type | Description |
|---|---|---|
address * | string | Alias address, e.g. "biuro@example.pl". |
goto * | string | Target email or comma-separated list. |
saplo_backup_list
List backups for an application. Shows status (completed, in_progress, failed, restoring) and size. Limit per plan: HostingPlan.backup_limit.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer |
saplo_backup_create
Trigger a backup (snapshot - lightweight, in-place). Async - check status via saplo_backup_list. Optionally pass a description. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
description | string |
saplo_backup_restore
Restore application from a backup. DESTRUCTIVE - overwrites current state of the app. User explicit confirmation MUST be obtained before calling. Requires admin scope on the token. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
backup_id * | integer |
saplo_cron_list
List cron jobs configured for an application container.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer |
saplo_cron_add
Add a cron job to an application container. Schedule in standard cron format (5 fields: minute hour day month weekday). Example: "0 3 * * *" = daily at 3 AM. Command runs inside the container. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
command * | string | |
schedule * | string | Cron expression, e.g. "0 3 * * *". |
enabled | boolean |
saplo_cron_toggle
Enable or disable a cron job without removing it. Useful for temporarily pausing scheduled tasks.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
cron_id * | integer | |
enabled * | boolean |
saplo_cron_remove
Permanently remove a cron job. Destructive - confirm with user.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
cron_id * | integer |
saplo_app_resize
Change RAM, CPU and SSD allocation of an application container. RAM and CPU are hotplugged (no restart). SSD is grow-only (cannot shrink). Limits enforced per plan. Use saplo_list_plans to know current plan limits. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
cpu_cores * | integer | |
ram_mb * | integer | |
ssd_gb * | integer |
saplo_addon_list
List paid addons (extra RAM/SSD, extra app slots, mailboxes, priority support) provisioned for the user. NOTE: databases and cache (postgres, redis, mysql) are NOT sold here and never were a product - a database is either a container in the app's own docker-compose.yml (stack="docker"), or shared MySQL that Saplo provisions automatically for recipes that need it (WordPress, Ghost, Matomo). Never tell the user to buy a database.
saplo_addon_buy
Universal endpoint to buy any priced addon. Available item_types: addon_extra_app_slot, addon_extra_ram, addon_extra_ssd, addon_mailbox, addon_priority_support, addon_mail_starter and mail packages addon_mail_storage (+10 GB), addon_mail_storage_25, addon_mail_storage_50, addon_mail_storage_100. Prices come from saplo_pricing_list - never quote them from this description, it is not the source of truth. UWAGA: bazy i cache (postgres, redis, mysql) NIE sa addonem i nie sa na sprzedaz - baza to kontener we wlasnym docker-compose.yml aplikacji (stack="docker") albo wspolne MySQL nadawane automatyc…
| Parameter | Type | Description |
|---|---|---|
item_type * | string |
saplo_addon_assign
Attach an existing paid addon to an application, or detach it (pass app_id=null). Detaching does not destroy the addon - it stays in the user account and can be reattached. NOTE: this is NOT for databases - postgres/redis/mysql are not addons and are not sold; a database lives in the app's own docker-compose.yml (stack="docker") or is provisioned automatically for recipes that declare they need MySQL.
| Parameter | Type | Description |
|---|---|---|
addon_id * | integer | |
app_id * | integer | null | Target application id. Pass null to detach the addon from any application. |
saplo_addon_remove
Deprovision a paid addon (extra RAM/SSD slot, mailbox, app slot, priority support). DESTRUCTIVE. Requires admin scope. User must explicitly confirm before calling. NOTE: databases are not addons - to drop one, edit the app's docker-compose.yml and redeploy.
| Parameter | Type | Description |
|---|---|---|
addon_id * | integer |
saplo_customdomain_list
List custom domains attached to an application with their status (active, configuring_ssl, error_npm, ...) and SSL status.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer |
saplo_customdomain_remove
Remove a custom domain from an application (cleans up NPM proxy host + SSL cert). Destructive - confirm with user. If user owns 2+ apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
domain_id * | integer |
saplo_customdomain_verify
Force re-check of DNS pointing for a custom domain and attempt SSL issuance via Lets Encrypt. Use when DNS was just updated and you want to skip the wait.
| Parameter | Type | Description |
|---|---|---|
app_id * | integer | |
domain_id * | integer |
saplo_wallet_balance
Get the user's prepaid wallet balance (PLN) and last 50 transactions. ALWAYS call this BEFORE creating paid resources (addons, ports, mailboxes) - if balance is too low, ask user to top up via saplo_wallet_topup_create instead of provisioning. Saplo never auto-charges credit cards; AI must respect the wallet limit.
saplo_wallet_topup_create
Create an Imoje payment link for topping up the user's wallet. Returns a payment_url - SHOW IT TO THE USER and ask them to open it in browser to complete payment. Wallet balance updates automatically via Imoje webhook within seconds of payment confirmation. Min 10 PLN, max 10000 PLN. The AI agent does NOT initiate payments directly - it always asks the human user to authorize via the Imoje checkout page.
| Parameter | Type | Description |
|---|---|---|
amount_pln * | number | Amount to top up in PLN (10-10000). |
saplo_pricing_list
Get the catalog of priced addons (extra RAM/SSD, extra app slots, custom ports, mailboxes, priority support). Public data. Use BEFORE asking the user to confirm provisioning - so the AI knows the cost and can warn the user about ongoing monthly fees. NOTE: databases (postgres/redis/mysql) are NOT here and cost nothing - they run inside the app's own docker-compose.yml (stack="docker").
saplo_wp_install
Install fresh WordPress on a Saplo app (stack=wordpress). Auto-creates admin user, sets locale, returns admin password if not provided. If user owns 2+ WordPress apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
admin_email * | string | Admin email (required). |
application_id * | integer | Saplo application ID (from saplo_list_apps). |
admin_password | string | Optional. If empty - random 24 chars generated and returned in response. |
admin_user | string | Admin username, default "admin". |
locale | string | WP locale, default pl_PL. Options: pl_PL, en_US, de_DE, fr_FR, ... |
title | string | Site title (e.g. "Moja Firma"). |
saplo_wp_plugin_list
List installed plugins with status and version. Shows active/inactive status and pending updates.
| Parameter | Type | Description |
|---|---|---|
application_id * | integer |
saplo_wp_plugin_install
Install WordPress plugin by slug from wordpress.org or by URL. Auto-activates by default. If user owns 2+ WordPress apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
application_id * | integer | |
slug * | string | Plugin slug from wordpress.org (e.g. "woocommerce") or full URL to a .zip. |
activate | boolean | Activate plugin after install. Default true. |
version | string | Optional specific version, e.g. "8.5.2". Default: latest. |
saplo_wp_theme_install
Install WordPress theme by slug, optionally activate. If user owns 2+ WordPress apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
application_id * | integer | |
slug * | string | Theme slug from wordpress.org (e.g. "astra") or full URL to a .zip. |
activate | boolean | Activate theme after install. Default false. |
saplo_wp_user_create
Create WordPress user with given role (administrator/editor/author/contributor/subscriber). If password omitted, a random 24-char password is generated and returned. If user owns 2+ WordPress apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
application_id * | integer | |
email * | string | |
username * | string | |
first_name | string | |
last_name | string | |
password | string | Optional. If empty - random 24 chars generated and returned. |
role | string |
saplo_wp_cli
Universal wp-cli passthrough. Pass command as args array. Whitelist enforced server-side. Destructive commands (db drop, user delete, plugin delete) require confirm_destructive=true. If user owns 2+ WordPress apps and did not specify which, ASK - never assume.
| Parameter | Type | Description |
|---|---|---|
application_id * | integer | |
args * | array | wp-cli command argv, e.g. ["option", "get", "siteurl"] or ["search-replace", "old.com", "new.com"]. |
confirm_destructive | boolean | Set to true to actually execute destructive commands (db drop, user delete, plugin delete, search-replace). |
saplo_wp_db_export
Export WordPress database to .sql file. Returns path on the application LXC.
| Parameter | Type | Description |
|---|---|---|
application_id * | integer |
saplo_wp_clone
Clone WordPress app to another app (same user, target must be stack=wordpress). Copies DB, files, runs search-replace for URLs. DESTRUCTIVE - overwrites target. confirm=true required.
| Parameter | Type | Description |
|---|---|---|
application_id * | integer | Source app ID. |
confirm * | boolean | Set to true to actually execute - target site will be overwritten. |
target_application_id * | integer | Target app ID (must be stack=wordpress, same user, will be overwritten). |