Repository navigation
v1.6.0 — Windows support
Highlights
This release adds Windows support to GTM CLI. A prebuilt gtm-windows-x64.exe is now produced for every release, the npm installer knows how to fetch it, and the OAuth login flow now works correctly on Windows.
What's new
🪟 Windows is now a supported platform
- Prebuilt binary: releases now include
gtm-windows-x64.exe(built onwindows-latestfor thex86_64-pc-windows-msvctarget). - npm install support:
npm install -g @owntag/gtm-clinow resolves the correctgtm-binary.exe, maps thewin32-x64platform, and skips the Unix-onlychmodstep on Windows.win32is added to the package's supportedoslist.
🐛 Fixed OAuth login on Windows
Previously, gtm auth login on Windows opened the browser via cmd /c start <url>. Because cmd.exe treats & as a command separator, the Google authorization URL was truncated at the first &, dropping response_type, redirect_uri, scope and the rest. Google then rejected the request with:
Error 400: invalid_request — Required parameter is missing: response_type
The browser is now opened via rundll32 url.dll,FileProtocolHandler <url>, which receives the full URL as a single argument with no shell re-parsing.
Installation
Windows (binary):
- Download
gtm-windows-x64.exefrom the assets below. - Rename it to
gtm.exeand place it somewhere on yourPATH. - Run
gtm auth login.
npm (all platforms):
npm install -g @owntag/gtm-cliAssets
gtm-windows-x64.exe— Windows (x64)gtm-darwin-arm64— macOS (Apple Silicon)gtm-darwin-x64— macOS (Intel)gtm-linux-x64— Linux (x64)
Full Changelog: v1.5.8...v1.6.0