Repository navigation
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.