Skip to content
This repository was archived by the owner on Jul 21, 2026. It is now read-only.

chore: [CLD-2844] deprecate sfcompute/cli#272

Merged
0xJepsen merged 3 commits into
mainfrom
waylon/cld-2844-deprecate-sfcomputecli
Jul 21, 2026
Merged

chore: [CLD-2844] deprecate sfcompute/cli#272
0xJepsen merged 3 commits into
mainfrom
waylon/cld-2844-deprecate-sfcomputecli

Conversation

@0xJepsen

@0xJepsen 0xJepsen commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What

Deprecate the legacy TypeScript sf CLI ahead of archiving this repo.

Part of the CLD-2844 plan (from this Slack thread):

  • Update README
  • Add a deprecation warning to the CLI on startup
  • Release new release
  • Archive the repo (done manually after this merges — archiving makes the repo read-only, so it has to come last)

Changes

  • src/lib/migrate.ts — the startup migrate banner is now a red "Deprecated" notice: "This CLI is deprecated and no longer maintained." It keeps the sf migrate call-to-action, the docs link, and the SF_CLI_DISABLE_MIGRATE_BANNER opt-out. No change to when it shows (still skipped for --json, migrate/upgrade, opted-out, and already-migrated users).
  • README.md — leads with a > [!WARNING] deprecation block pointing at the Rust CLI (install + migration guide). Existing docs kept below for archival reference.

Banner preview

╭───────────────────── Deprecated ─────────────────────╮
│                                                      │
│   This CLI is deprecated and no longer maintained.   │
│                                                      │
│   The sf CLI has been rewritten in Rust. Run         │
│   'sf migrate' to switch. Your current CLI           │
│   stays available as 'sf-old'.                       │
│                                                      │
│   Docs:  https://sfcompute.com/migrate               │
│   Hide:  SF_CLI_DISABLE_MIGRATE_BANNER=1             │
│                                                      │
╰──────────────────────────────────────────────────────╯

Verification

  • tsc --noEmit passes clean.
  • biome check reports only pre-existing warnings in untouched src/lib/scale/ files.

Notes

  • The banner change only reaches installed users once a new version is published — flag if we want a release cut, otherwise landing the code + archiving is enough.

🤖 Generated with Claude Code

Mark the legacy TypeScript sf CLI as deprecated ahead of archiving the
repo. The startup migrate banner becomes a red "Deprecated" notice and
the README leads with a deprecation warning pointing at the Rust CLI.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@semanticdiff-com

semanticdiff-com Bot commented Jul 21, 2026

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  src/lib/migrate.ts  17% smaller
  README.md Unsupported file format

@0xJepsen
0xJepsen requested a review from sigmachirality July 21, 2026 18:16
Removed mention of legacy CLI availability as 'sf-old'.
Updated the migration banner message to clarify CLI deprecation and migration instructions.

@sigmachirality sigmachirality left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to release a new release after this merges, but otherwise lgtm

@0xJepsen
0xJepsen merged commit 58c2e99 into main Jul 21, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants