Skip to content
This repository was archived by the owner on Jul 21, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# cli

> [!WARNING]
> **This repository is deprecated and no longer maintained.**
>
> The San Francisco Compute `sf` CLI has been rewritten in Rust. If you have
> this legacy CLI installed, run `sf migrate` to switch.
>
> - Install the current CLI: <https://cli.sfcompute.com>
> - Migration guide: <https://sfcompute.com/migrate>
>
> The documentation below is retained for archival reference only.

This is the San Francisco Compute command line tool.

### Install (MacOS/Linux)
Expand Down
15 changes: 7 additions & 8 deletions src/lib/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,21 @@ const NEW_CLI_INSTALL_URL = "https://cli.sfcompute.com";
const MIGRATION_GUIDE_URL = "https://sfcompute.com/migrate";

export function showMigrateBanner() {
const message = `We've rewritten the sf CLI in Rust.
const message = `This CLI is deprecated and no longer maintained.

List idle capacity on the orderbook to
recoup up to 20% of your spend.

Run 'sf migrate' to switch. Your current
CLI stays as 'sf-old'.
The sf CLI has been rewritten in Rust. Run
'sf migrate' to switch.

Docs: ${MIGRATION_GUIDE_URL}
Hide: SF_CLI_DISABLE_MIGRATE_BANNER=1`;

console.log(
boxen(chalk.yellow(message), {
boxen(chalk.red(message), {
padding: 1,
borderColor: "yellow",
borderColor: "red",
borderStyle: "round",
title: "Deprecated",
titleAlignment: "center",
}),
);
}
Expand Down
Loading