Skip to content

release(cli): cut v0.2.0, fix install.sh latest URL#3917

Merged
saddlepaddle merged 1 commit into
mainfrom
cli-prod-release
Apr 30, 2026
Merged

release(cli): cut v0.2.0, fix install.sh latest URL#3917
saddlepaddle merged 1 commit into
mainfrom
cli-prod-release

Conversation

@saddlepaddle
Copy link
Copy Markdown
Collaborator

@saddlepaddle saddlepaddle commented Apr 30, 2026

Summary

  • Switch install.sh from /releases/latest/download/ (which resolves to the highest non-prerelease repo-wide — usually desktop-v*, no CLI assets, 404) to the rolling cli-latest release that release-cli.yml maintains. This is what the workflow already expects; install.sh was just stale.
  • Bump CLI 0.1.00.2.0 to cover the 16 commits since April 9: --host/--local host flags, automations prompt subcommand and setPrompt split, --to--version rename, sk_live_x-api-key header fix, CLOUD_API_URLSUPERSET_API_URL rename, release pipeline rewrite (rolling cli-latest + Homebrew bump).

After this merges, push cli-v0.2.0 from main to fire release-cli.yml → versioned --prerelease + rolling cli-latest + auto Homebrew formula bump via bump-homebrew.yml.

Test plan

  • Merge PR, then git tag cli-v0.2.0 && git push origin cli-v0.2.0 from main
  • Watch release-cli.yml go green (~3-5 min for the matrix build)
  • curl -sI -L https://github.com/superset-sh/superset/releases/download/cli-latest/superset-darwin-arm64.tar.gz | head -1 → 200/302
  • curl -sI -L https://github.com/superset-sh/superset/releases/download/cli-latest/superset-linux-x64.tar.gz | head -1 → 200/302
  • curl -sI -L https://github.com/superset-sh/superset/releases/download/cli-latest/superset-linux-arm64.tar.gz | head -1 → 200/302
  • In a fresh shell: curl -fsSL https://superset.sh/cli/install.sh | sh completes without error
  • superset --version prints 0.2.0
  • bump-homebrew.yml ran, formula in superset-sh/homebrew-tap updated to 0.2.0 with correct SHA256s
  • brew upgrade superset (or brew install) on a clean machine pulls 0.2.0

Summary by CodeRabbit

  • Chores
    • Released CLI version 0.2.0 with comprehensive updates across all distribution channels, including npm registry and direct download mechanisms, ensuring consistent availability and seamless access for all users
    • Refined installation scripts and download infrastructure to provide enhanced reliability, consistency, and stability when obtaining and deploying the latest CLI releases to production environments

The install.sh latest path was pointing at /releases/latest/download/,
which GitHub resolves to the highest non-prerelease release across the
whole repo — almost always a desktop-v* release. CLI tarballs aren't in
those, so curl | sh 404s.

release-cli.yml already maintains a rolling cli-latest release that's
re-pointed on every cli-v* tag publish. Switch install.sh to read from
that path so it never collides with desktop releases.

Bump CLI version 0.1.0 -> 0.2.0 to capture all the changes since April
9 (host flag rework, prompt split, automations prompt subcommand, API
key path rename, install/release pipeline rewrite). Push cli-v0.2.0
after this lands to fire the release pipeline.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 30, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 891202c6-edf6-462a-9ac9-115aed324de3

📥 Commits

Reviewing files that changed from the base of the PR and between 51c4035 and 8b1009e.

📒 Files selected for processing (3)
  • apps/marketing/public/cli/install.sh
  • packages/cli/cli.config.ts
  • packages/cli/package.json

📝 Walkthrough

Walkthrough

Version bump from 0.1.0 to 0.2.0 across CLI package, configuration, and build scripts. Installation script updated to download from an explicit release tag endpoint instead of the generic latest endpoint.

Changes

Cohort / File(s) Summary
Version Bump
packages/cli/cli.config.ts, packages/cli/package.json
Version constant and package version incremented from 0.1.0 to 0.2.0.
Installation Script
apps/marketing/public/cli/install.sh
Download URL endpoint changed from releases/latest/download/<tarball> to releases/download/cli-latest/<tarball>.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A new version hops along the way,
From zero-one to zero-two today!
The CLI config dances, package sings,
While install scripts update their download strings. ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cli-prod-release

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@saddlepaddle saddlepaddle merged commit bb1045d into main Apr 30, 2026
12 of 14 checks passed
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 30, 2026

Greptile Summary

This PR bumps the CLI from 0.1.0 to 0.2.0 (aligned across package.json and cli.config.ts) and fixes install.sh to download from the dedicated cli-latest rolling release tag instead of the repo-wide /releases/latest/download/ URL that was resolving to a non-CLI release and returning 404s. All three changes are coherent and the fix directly addresses the described root cause.

Confidence Score: 5/5

Safe to merge — all three changes are minimal, consistent, and correct.

The URL fix in install.sh directly addresses a real 404 caused by the repo-wide latest redirect resolving to a desktop release. The version bump is consistent across both files. No logic, security, or correctness issues found.

No files require special attention.

Important Files Changed

Filename Overview
apps/marketing/public/cli/install.sh Fixes the default download URL from the repo-wide /releases/latest/download/ (which resolves to a non-CLI tag) to the dedicated rolling cli-latest release tag; the rest of the script is unchanged.
packages/cli/cli.config.ts Version constant bumped from 0.1.0 to 0.2.0 — consistent with package.json.
packages/cli/package.json Package version bumped from 0.1.0 to 0.2.0 — consistent with cli.config.ts.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["curl install.sh | sh"] --> B{TAG == 'latest'?}
    B -- "Yes (default)" --> C["URL: /releases/download/cli-latest/superset-{target}.tar.gz\n✅ Fixed — resolves to CLI assets"]
    B -- "No (SUPERSET_VERSION set)" --> D["URL: /releases/download/{TAG}/superset-{target}.tar.gz\n(unchanged)"]
    C --> E["curl -fsSL download"]
    D --> E
    E --> F["extract to ~/superset/"]
    F --> G["verify binaries executable"]
    G --> H["update PATH in shell profile"]
    H --> I["Done ✅"]
Loading

Reviews (1): Last reviewed commit: "release(cli): cut v0.2.0, fix install.sh..." | Re-trigger Greptile

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

🚀 Preview Deployment

🔗 Preview Links

Service Status Link
Neon Database (Neon) View Branch
Vercel API (Vercel) Open Preview
Vercel Web (Vercel) Open Preview
Vercel Marketing (Vercel) Open Preview
Vercel Admin (Vercel) Open Preview
Vercel Docs (Vercel) Open Preview

Preview updates automatically with new commits

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.

1 participant