Description
The CLI shortcut cmd cannot work on Windows because cmd is already the built-in Windows Command Prompt (cmd.exe). Every Windows machine has cmd in PATH by default, so invoking cmd always opens the Command Prompt instead of Command Code.
The official docs, README, and in-app references all point users to cmd as the primary command. This is misleading for all Windows users.
Environment
- OS: Windows (win32-x64)
- CommandCode version: 0.30.1
Steps to Reproduce
- Install Command Code on Windows:
npm install -g command-code
- Open any terminal
- Type
cmd and press Enter
- Expected: Command Code launches
- Actual: Windows Command Prompt (
cmd.exe) opens instead
Impact
- All Windows users (a significant portion of developers) cannot use the documented shortcut
- Docs, README, and in-app help all reference
cmd, leading to confusion
- The only working alternative is
command-code, which is less discoverable
Suggestion
Either:
- Rename the CLI shortcut to something that doesn't conflict on Windows (e.g.
cc, cde, ccli)
- Add a platform-specific alias that avoids the conflict on Windows
- Document the issue prominently in the README and provide the
command-code alternative for Windows users
Related
Description
The CLI shortcut
cmdcannot work on Windows becausecmdis already the built-in Windows Command Prompt (cmd.exe). Every Windows machine hascmdin PATH by default, so invokingcmdalways opens the Command Prompt instead of Command Code.The official docs, README, and in-app references all point users to
cmdas the primary command. This is misleading for all Windows users.Environment
Steps to Reproduce
npm install -g command-codecmdand press Entercmd.exe) opens insteadImpact
cmd, leading to confusioncommand-code, which is less discoverableSuggestion
Either:
cc,cde,ccli)command-codealternative for Windows usersRelated