Skip to content

v1.7.0

Choose a tag to compare

@LanusseMorais LanusseMorais released this 03 Jul 15:55
· 14 commits to main since this release
4c06843

lsh v1.7.0 — API coverage release

This release closes the API-coverage milestone: seven new command groups bring
firewalls, elastic IPs, virtual machines, Kubernetes, storage and SSH key /
user data management to the CLI, with the same automation-friendly output
(-o json|yaml|csv, --query, --profile) across all of them.

New commands

Network

  • lsh firewalls — list, get, create (rules inline or from a file via
    --rules @rules.json), update, delete, plus assignments list|create|delete
  • lsh elastic-ips — list, get, create, update (reassign), delete

Compute

  • lsh virtual-machines — list, get, create (--region, --wait),
    update, action (power_on/power_off/reboot), delete
  • lsh kubernetes clusters — list, get, create (--wait), delete
  • lsh kubernetes versions list and lsh kubernetes kubeconfig <cluster-id>
    (prints raw YAML — pipe it straight into KUBECONFIG)

Servers

  • lsh servers power-on | power-off | reboot <id> — one subcommand per power
    action, with --wait
  • lsh servers rescue-mode | exit-rescue-mode <id> (--wait) and
    lsh servers lock | unlock <id>

Storage

  • lsh storage-filesystems — list, update (resize), delete
  • lsh storage-objects — list, get, create, delete

SSH keys & user data (team and project scopes)

  • lsh ssh-keys and lsh user-data — team-level CRUD
  • lsh projects ssh-keys and lsh projects user-data — project-scoped
    list|get|create|delete, defaulting to the active project

UX improvements

  • Interactive lists gained an enter-to-details view (firewall rules expanded,
    user-data cloud-init shown decoded), with vertical/horizontal/mouse-wheel
    scrolling for long content
  • Single plain results now print a flat table instead of taking over the
    terminal; table column order is deterministic everywhere
  • Every list walks all API pages and honors --page-size, --max-items
    and --no-paginate
  • ls/rm aliases on list/delete, positional ids, and mutation output that
    never corrupts -o json pipelines

⚠️ Behavior changes

  • lsh ssh_keys (legacy) is now an alias of the new team-scoped
    lsh ssh-keys. It previously operated on project SSH keys — use
    lsh projects ssh-keys for the project scope.
  • Single-row results render as a flat table by default (previously an
    interactive one-row table). Structured output (-o json etc.) is unchanged.

Known limitations

  • storage-filesystems create is not included: filesystem creation is
    temporarily unavailable platform-side
  • virtual-machines create --plan and kubernetes clusters list --project
    take IDs (plan_xxx / proj_xxx); those endpoints do not resolve slugs yet
  • Rescue-mode login credentials are not exposed by the API — retrieve them on
    the server's page in the dashboard

Built on latitudesh-go-sdk v1.16.5.

What's Changed

  • feat(cli): add firewalls and elastic-ips commands (PD-6077) by @LanusseMorais in #91
  • feat(cli): add ssh-keys and user-data commands with account/project scopes (PD-6273) by @LanusseMorais in #92
  • feat(cli): add server power, rescue and lock commands (PD-6075) by @LanusseMorais in #93
  • feat(cli): add virtual-machines and kubernetes commands (PD-6076) by @LanusseMorais in #94
  • feat(cli): add storage-filesystems and storage-objects commands (PD-6078) by @LanusseMorais in #95

Full Changelog: v1.6.3...v1.7.0