Skip to content

BladeCP CLI v0.2.0

Choose a tag to compare

@ulissescomonian ulissescomonian released this 18 Oct 00:34
· 7 commits to main since this release

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 login shows 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 with BLADECP_MOTION=reduced it shows the last frame still; without
    color it is drawn in ASCII; in CI, with --json or in a pipe it does not
    appear. While waiting for the browser, Enter opens it again, c copies the
    address and Esc cancels.
  • bladecp alone on a terminal is a welcome screen: the account, what needs you
    right now and the shortcuts.
  • bladecp migrate is 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 key a (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 status and --watch add a slowPhase field.
  • bladecp update checks 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_NOTIFIER or
    bladecp config set update-check off. Nothing else is sent.
  • bladecp config list, get and set for preferences: auto-update (off by
    default; when on, the CLI updates itself before a command on an interactive
    terminal), update-check and lang.
  • When the API answers 426, or sends BladeCP-Min-CLI-Version above the
    version in use, the CLI stops with update_required and 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).
  • approve and cancel ask for confirmation on a terminal; --yes skips it.
  • --debug (or --verbose) describes each request on stderr, never the key.
  • --help --json returns the help as one JSON document; bladecp migrations --help shows 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, and migration_failed and migration_cancelled are now in
    reference.json.

Fixed

  • servers shows the domain when the API sends primaryDomain.
  • An answer outside the contract (missing fields, an empty data, an HTML page
    with status 200) is reported as invalid_response, never as a JavaScript
    error or "HTTP 200".
  • migrations status --watch --json keeps one JSON document per line, errors
    included.
  • Running migrate again with another --plan or --location no 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 -1 and an empty --api-url; a
    callback with the wrong state no longer cancels the sign-in; --no-wait --json includes domainPointing; 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_DIR expands ~; NO_COLOR follows no-color.org (an empty
    value keeps colors) and FORCE_COLOR forces colors in pipes; CI never asks.
  • File system errors (permissions, a full disk) are explained in words.
  • Saving a sign-in over another account or API address says so.