cmd v1.0.0
First release — a Windows BAT/CMD interpreter for Unix and Linux, written in Go.
Run .bat/.cmd scripts natively, or use it as an interactive shell with BAT
syntax. It reproduces a large slice of real cmd.exe behaviour (and quirks):
delayed expansion, FOR /L /F /D /R, SET /A, CALL/GOTO, pipes and
&&/|| chains, redirection, IF, and dynamic %DATE%/%TIME%/%RANDOM%.
Fidelity is checked against gw-batsic — a
GW-BASIC interpreter written entirely in batch — whose full test suite (1046
checks) passes with no divergence from Windows.
See the documentation and the
compatibility reference.
Downloads
Pick the archive for your platform, extract it, and run cmd (or cmd.exe):
| Platform | Asset |
|---|---|
| macOS (Apple Silicon) | cmd_darwin_arm64.tar.gz |
| macOS (Intel) | cmd_darwin_amd64.tar.gz |
| Linux x86-64 (Ubuntu/Debian/…) | cmd_linux_amd64.tar.gz |
| Linux ARM64 | cmd_linux_arm64.tar.gz |
| Windows x64 | cmd_windows_amd64.zip |
| Windows ARM64 | cmd_windows_arm64.zip |
Binaries are statically linked with no runtime dependencies. Verify downloads
against SHA256SUMS.