Repository navigation
Releases
Releases · bladecp/bladecp-cli
BladeCP CLI v0.4.3
BladeCP CLI 0.4.3
[0.4.3] - 2026-10-20
Changed
bladecp partner servers create --helpsays that a Stack Container always
gets a web server: NGINX by default, or another one such as
--component apache. The BladeCP API adds NGINX to a stack sent without
one, so--component phpalone no longer leaves the server without it.--planor--locationwith a UUID says to use the number in the ID
column ofbladecp partner plansorbladecp partner locations.
BladeCP CLI v0.4.2
BladeCP CLI 0.4.2
[0.4.2] - 2026-10-20
Fixed
bladecp analyzeno longer counts the folders of the cPanel user's own
mailbox (mail/.Sent,mail/cur) as an email domain.
BladeCP CLI v0.4.1
BladeCP CLI 0.4.1
[0.4.1] - 2026-10-19
Changed
- On an interactive terminal, a new version now installs itself before your
next command, which then runs on it. It never happens in CI, in scripts or
with--json, nor with a non-global install. After a failed update, that
version waits a day before another try.bladecp config set auto-update off
turns it off and leaves the notice instead.
Fixed
- The changes listed by
bladecp updatekeep the list that follows a label
("Sites: ...") instead of showing the label alone.
BladeCP CLI v0.4.0
BladeCP CLI 0.4.0
[0.4.0] - 2026-10-19
The CLI now reaches the whole Customer API. The --json envelope, the exit
codes and the error codes of 0.3 keep their meaning; this release only adds
to them.
Added
- Sites:
bladecp domains list|add|remove|check,bladecp apps list|show|install,bladecp wordpress status|dashboard|taskand
bladecp wordpress update core|plugin|theme(with--wait), and
bladecp components list. The key frombladecp loginchanges domains,
apps and WordPress on your own servers; a partner adds--external-idto
the WordPress commands to name the service of its billing system. - Partner tools, for keys with the
partner:readscope:bladecp partner plans|locations|options|branding,bladecp partner servers list|create|plan|options|suspend|unsuspend|cancel|delete|open,
bladecp partner vibe find|show|create|plan|suspend|reactivate|resume| terminate|open,bladecp partner marketplace summary|orders|commissions| statements|statement|invoices,bladecp partner webhooks list|show|create|update|pause|resume|delete|rotate-secret|deliveries|replay
andbladecp partner migrations list|show|review|approve|cancel|retry| billing-queue|billing-link|claim-url. A partner command run with a
customer key stops with the new error codepartner_only(exit code 4). bladecp api <path>sends one request to any Customer API route with the key
in use and prints the answer;bladecp api listshows every route and the
command that covers it.- On a terminal,
bladecpalone also shows the partner tools when the key is a
partner key. - New options:
--status,--limit,--page,--external-id,--name,
--email,--url,--event,--option,--wait,-X/--method,
--data,--input,--app-version,--component,--contract,--now,
--reason-category,--email-verification,--endpoint,
--installation,--clientand--company, each on the commands that use
it.
Changed
bladecp --helplists the new groups (Sites, Partners, Automation) in one
line each;bladecp <group> --helplists their commands. Commands can have
three words, such asbladecp partner servers create.- On a narrow terminal, a question breaks its title into lines instead of
cutting it, so the answer stays visible. - A suspended status reads in amber: it can be undone.
BladeCP CLI v0.3.2
BladeCP CLI 0.3.2
[0.3.2] - 2026-10-18
Changed
bladecp analyzetreats every site as one that moves to BladeCP, WordPress or not. A backup whose main site has no WordPress is analyzed like any other: its sites, files, databases, mailboxes, DNS zone and cron jobs are listed as coming to BladeCP, instead of being refused.
BladeCP CLI v0.3.1
BladeCP CLI 0.3.1
[0.3.1] - 2026-10-18
Fixed
bladecp analyzeand the analyzer library read a backup compressed as
several gzip blocks (members) the same way everywhere. In some browsers and
Node versions the web entry stopped at the end of the first block and
reported a cut file. Both entries now share one gzip reader, with no
DecompressionStreamand no zlib stream: it reads every block in turn and,
like the migration, looks at what follows the last block only when the
backup needs more data, so bytes added after the end of a complete backup no
longer refuse it, while a damaged block in the middle still does.
BladeCP CLI v0.3.0
BladeCP CLI 0.3.0
[0.3.0] - 2026-10-17
Know what a cPanel backup holds before you migrate it. The --json output,
the exit codes and the error codes of 0.2.0 keep their meaning; this release
only adds to them.
Added
bladecp analyze <backup.tar.gz>reads a full cPanel backup on your computer
and shows what it holds (sites, WordPress, databases with engine and version,
email, DNS, cron, PHP versions, files and size), what comes to BladeCP, what
stays behind, the notes that matter and the smallest plan it needs (disk and
databases). It ends with thebladecp migratecommand ready to run. It needs
no sign-in and no network: nothing from the backup leaves the computer.- The analysis reads the backup the same way the migration does, once and as a
stream (gzip, plain tar, GNU and PAX long names, sparse files), so it never
loads the file into memory, even at 50 GB. Large files show a progress bar.
When the migration would refuse the backup (a damaged or cut file, a site
that is not WordPress, an active WordPress Multisite, a domain or a value of
wp-config.phpit does not accept, a backup with no database dump), it says
why and what to do, and exits with6. --prices(with--currency) adds the cheapest plan of your account that
fits the backup, with the price of now and the--planand--locationto
migrate to it. Without a sign-in it explains how to sign in; if the plans do
not load, the analysis still stands. The only request is the list of plans,
with the currency.bladecp analyze --jsonprints the report in thebladecp.analyze.v1
schema, withok: trueeven when the backup does not migrate, so scripts
and agents decide onverdict,blockersandwarnings. Passwords, hashes,
keys, email addresses and the text ofwp-config.phpnever appear in the
report or on the screen.- The analyzer is also a library in the same package, with no dependencies:
@bladecp/cli/analyzer(the core, for Node and browsers),
@bladecp/cli/analyzer/node(a file path) and@bladecp/cli/analyzer/web
(aFileorBlob, withDecompressionStream). reference.jsondescribes theanalyzecontract: the verdicts with their
exit codes and every blocker and warning code with its message in the three
languages.
BladeCP CLI v0.2.0
BladeCP CLI 0.2.0
[0.2.0] - 2026-10-17
A new look for every screen and a CLI that keeps itself current. The --json
output, the exit codes of 0.1.0 and the error codes keep their meaning; this
release only adds to them.
Added
- A new design for every screen on a terminal, with the identity of the
BladeCP Hub: a horizon line, a rail of steps, quiet colors, and tables, help
and progress that fit 40, 80 or 120 columns. Without a terminal the output
stays the plain text of 0.1.0. bladecp loginshows the BladeCP B in 3D, rendered on the fly: it spins for
about 1.5 seconds and lands facing you, centered in its area and sized so
the waiting screen fits the window. While the login waits for the browser,
single points of light twinkle around it and stop when the login ends. Over
SSH or withBLADECP_MOTION=reducedit shows the last frame still; without
color it is drawn in ASCII; in CI, with--jsonor in a pipe it does not
appear. While waiting for the browser, Enter opens it again,ccopies the
address and Esc cancels.bladecpalone on a terminal is a welcome screen: the account, what needs you
right now and the shortcuts.bladecp migrateis a guided wizard on a terminal: the destination with the
arrow keys, a confirmation with the plan, the place and the monthly price, the
upload with a progress bar, every phase with its time, the preview, and
approval right there with the keya(never with--yes).- A phase that takes longer than usual says so, explains that the migration
keeps going if you leave and, when it is very long, points to support. With
--json,migrations statusand--watchadd aslowPhasefield. bladecp updatechecks npm, shows what changed and updates with the package
manager that installed the CLI (npm, pnpm, yarn, bun or Volta), with--check
and--yes. Permission errors are explained without suggesting sudo.- Once a day, in the background, the CLI asks the npm registry for the latest
version and shows one quiet line at the end of interactive commands. Never in
--json, pipes, CI or without color; turn it off with
BLADECP_NO_UPDATE_CHECK=1,NO_UPDATE_NOTIFIERor
bladecp config set update-check off. Nothing else is sent. bladecp config list,getandsetfor preferences:auto-update(off by
default; when on, the CLI updates itself before a command on an interactive
terminal),update-checkandlang.- When the API answers
426, or sendsBladeCP-Min-CLI-Versionabove the
version in use, the CLI stops withupdate_requiredand the new exit code
11. - Short IDs: any command that takes a server or migration ID accepts its first
characters (at least 4) when only one of yours starts with them. bladecp servers --all; deleted servers are hidden by default (--json
still lists every server).approveandcancelask for confirmation on a terminal;--yesskips it.--debug(or--verbose) describes each request on stderr, never the key.--help --jsonreturns the help as one JSON document;bladecp migrations --helpshows the whole group.- Retries of a request show one quiet line, such as "Trying again in 4 s (2/5)".
- New error codes:
invalid_response,filesystem_error,ambiguous_id,
migration_in_progress,confirmation_required,update_failed,
update_required, andmigration_failedandmigration_cancelledare now in
reference.json.
Fixed
serversshows the domain when the API sendsprimaryDomain.- An answer outside the contract (missing fields, an empty
data, an HTML page
with status 200) is reported asinvalid_response, never as a JavaScript
error or "HTTP 200". migrations status --watch --jsonkeeps one JSON document per line, errors
included.- Running
migrateagain with another--planor--locationno longer
continues the earlier migration silently: it asks on a terminal and refuses
elsewhere, showing the destination in progress. - A failed migration always shows a reason, and says why a new attempt is not
available. - Clear messages for
--json=true,--plan -1and an empty--api-url; a
callback with the wrongstateno longer cancels the sign-in;--no-wait --jsonincludesdomainPointing; a phase conflict names the phase in words. - Components of a failed or cancelled migration are "not run" instead of
"waiting", and components the backup does not have are "none in the backup". - "Backup received" is shown once, the plural of one part is right, and the
Portuguese texts read better. BLADECP_CONFIG_DIRexpands~;NO_COLORfollows no-color.org (an empty
value keeps colors) andFORCE_COLORforces colors in pipes;CInever asks.- File system errors (permissions, a full disk) are explained in words.
- Saving a sign-in over another account or API address says so.
BladeCP CLI v0.1.0
BladeCP CLI 0.1.0
[0.1.0] - 2026-10-17
First public release.
Added
bladecp loginwith the browser (one-time code, PKCE S256, local callback on127.0.0.1), with
--no-browser, with--token <key>(or--token -from stdin) and withBLADECP_API_KEY.bladecp logoutandbladecp whoami.bladecp servers listandbladecp servers show <uuid>with resource usage.bladecp destinations listwith disk size and monthly prices, and--currency <code>to narrow them.bladecp migrate <backup.tar.gz>: local checks, destination choice, parallel part upload with retries,
resume by running the same command again, domain confirmation and preview link.bladecp migrations list,status [--watch],review,approve,cancelandretry.- Without a terminal,
bladecp migratenever chooses the destination: it needs--planand--location, or
--yeswhen the account has exactly one destination. - Key problems (expired key, missing permission, too many active keys) point to the API keys page in the Hub.
- Once the domain of a migration is confirmed,
bladecp migrateandbladecp migrations status --watchkeep
waiting for BladeCP to continue instead of asking for the domain again (exit code 10 only while it is still
unanswered). A domain given with--domainat creation is never sent again. - Text from the API, the network or file names is shown with control characters (C0, DEL, C1, escape
sequences and bidirectional overrides) escaped visibly, so it cannot inject terminal sequences. --jsonoutput with a stable envelope, documented exit codes, and messages in English, Brazilian
Portuguese and Spanish.- A migration is complete once its preview is approved:
bladecp migrations status --watchand
bladecp migrateend with exit code 0 atcutover_pendingandcutover_stalled(never 9). Pointing the
domain is optional; the CLI shows the BladeCP nameservers and, when the API returns it, the address for an A
record, and the--jsonoutput ofmigrateandmigrations statusaddsdata.domainPointing.