Skip to content

feat: add sf uninstall command#270

Closed
joshi4 wants to merge 1 commit into
mainfrom
claude/eloquent-gauss-LqRIM
Closed

feat: add sf uninstall command#270
joshi4 wants to merge 1 commit into
mainfrom
claude/eloquent-gauss-LqRIM

Conversation

@joshi4
Copy link
Copy Markdown
Contributor

@joshi4 joshi4 commented Jun 2, 2026

Summary

  • Adds sf uninstall to wipe everything the CLI writes to disk: ~/.sfcompute/ (config + auth token + account id + cached feature flags + version cache) and the sf binary at process.execPath.
  • --yes skips the confirmation prompt; --keep-binary cleans state only and tells the user how to remove the binary themselves.
  • On UNIX you can unlink the running binary because the inode stays open until the process exits, so the command can self-delete cleanly.

Test plan

  • sf uninstall prompts for confirmation, removes ~/.sfcompute, and removes the binary
  • sf uninstall --yes runs without a prompt
  • sf uninstall --keep-binary removes only ~/.sfcompute and prints the manual-rm hint
  • Re-running sf uninstall after a previous run does not error (idempotent)

Generated by Claude Code

Removes ~/.sfcompute (config, cached tokens, feature flags, version
cache) and the sf binary itself so users have a one-shot way to clean
up everything the CLI puts on disk. Supports `--yes` to skip the prompt
and `--keep-binary` for users who only want to wipe state.
@semanticdiff-com
Copy link
Copy Markdown

semanticdiff-com Bot commented Jun 2, 2026

Review changes with  SemanticDiff

Changed Files
File Status
  src/index.ts  0% smaller
  src/lib/uninstall.ts  0% smaller

@joshi4 joshi4 closed this Jun 3, 2026
@joshi4 joshi4 deleted the claude/eloquent-gauss-LqRIM branch June 3, 2026 02:27
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.

2 participants