Skip to content

fix(cli): implement Windows CLI registration via the user PATH#69

Open
DocInTardis wants to merge 2 commits intoblueberrycongee:mainfrom
DocInTardis:fix/windows-cli-registration
Open

fix(cli): implement Windows CLI registration via the user PATH#69
DocInTardis wants to merge 2 commits intoblueberrycongee:mainfrom
DocInTardis:fix/windows-cli-registration

Conversation

@DocInTardis
Copy link
Contributor

@DocInTardis DocInTardis commented Mar 22, 2026

Summary

  • implement CLI registration and unregistration on Windows by updating the user-scoped Path environment variable

Changes

  • add electron/windows-cli-path.ts helpers for PATH parsing, normalization, deduplication, and removal
  • implement Windows branches in isCliRegistered(), registerCli(), and unregisterCli()
  • use PowerShell to read/write the user PATH entry
  • keep the existing macOS and Linux registration flows unchanged
  • add focused regression tests for case-insensitive and slash-insensitive PATH handling

Testing

  • node --experimental-strip-types --test tests/windows-cli-path.test.ts

Notes

  • the updated PATH is user-scoped, so newly opened terminals should pick it up after registration

Closes #34

@blueberrycongee
Copy link
Owner

Superseded by newer PR. Closing duplicate.

@blueberrycongee
Copy link
Owner

Reopening: this Windows CLI PATH registration has no equivalent in #80-96 range. Unique contribution.

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 registration (registerCli/unregisterCli) not implemented for Windows

2 participants