Skip to content

feat: prioritize clouds with CLI installed + hcloud CLI integration#1375

Merged
louisgv merged 3 commits intomainfrom
feat/cli-cloud-prioritization
Feb 17, 2026
Merged

feat: prioritize clouds with CLI installed + hcloud CLI integration#1375
louisgv merged 3 commits intomainfrom
feat/cli-cloud-prioritization

Conversation

@la14-1
Copy link
Member

@la14-1 la14-1 commented Feb 17, 2026

Summary

  • CLI-first cloud sorting: When selecting a cloud provider, clouds where the user has the relevant CLI tool installed (e.g., gcloud, hcloud, aws, doctl) are now sorted higher in the picker — below clouds with credentials set, but above clouds with neither
  • Hetzner hcloud CLI integration: All Hetzner operations (auth, SSH keys, server create/delete/list) now prefer the hcloud CLI when available, with automatic fallback to the existing REST API
  • Version bump: 0.3.0 → 0.3.1

Closes #1370

Test plan

  • bash -n hetzner/lib/common.sh — syntax OK
  • bun test credential-prioritization — 57/57 pass
  • bash test/run.sh — 80/80 mock tests pass
  • Manual: spawn clouds shows CLI-installed clouds with "CLI installed" hint
  • Manual: spawn claude sorts clouds with CLI higher than those without
  • Manual: Hetzner operations use hcloud CLI when installed

🤖 Generated with Claude Code

louisgv and others added 3 commits February 17, 2026 03:33
Instead of telling users to run `gcloud auth login` manually, just
run it automatically when auth check fails or instance creation hits
a reauthentication error, then retry.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When selecting a cloud provider, clouds are now sorted in 3 tiers:
1. Credentials detected (env vars set) — top priority
2. CLI installed (e.g., gcloud, hcloud, aws) — middle priority
3. Neither — default order

Also adds hcloud CLI-first support for Hetzner operations (server
create/delete/list, SSH key management, auth) with automatic fallback
to the existing REST API when hcloud is not available.

Closes #1370

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Simplifies the cloud key from "aws-lightsail" to "aws" — AWS should
have a single entry regardless of the underlying service used.

Renames the directory, updates manifest.json matrix keys, CLI map,
test fixtures, README, and all agent scripts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@louisgv louisgv merged commit c4eccbd into main Feb 17, 2026
2 checks passed
@louisgv louisgv deleted the feat/cli-cloud-prioritization branch February 17, 2026 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CLI]: check for relevant cli for each cloud platform and prioritize them over others

2 participants