lscpu-win is a lightweight Windows-native tool designed to provide detailed CPU information, serving as an alternative to the Linux-based lscpu command. It offers a straightforward way to retrieve essential CPU details directly on Windows systems.
Key Features:
Reports CPU architecture and logical CPU count.
Displays socket/core topology for multi-core processors.
Provides NUMA node count and cache size information.
Includes vendor, model, family, stepping, and maximum CPU frequency from the Windows registry.
Audience & Benefit:
Ideal for system administrators, developers, and IT professionals who need detailed CPU specifications without relying on Linux tools. lscpu-win simplifies CPU analysis on Windows, offering a native experience that integrates seamlessly with the operating system.
The tool can be installed via winget, ensuring easy setup and access for users.
README
lscpu-win
lscpu-win is a small Windows-native replacement for lscpu, written in Go.
It reports:
CPU architecture
logical CPU count
socket/core topology
NUMA node count
cache sizes
vendor, model, family, stepping
max CPU frequency from the Windows registry
Build
go build ./cmd/lscpu-win
Run
.\lscpu-win.exe
GitHub Actions
This repository includes:
.github/workflows/release.yml to build Windows binaries and create a GitHub release on tags like v1.0.0
.github/workflows/winget.yml to generate a winget manifest from the release and open a PR against your winget-pkgs fork
Repo Configuration
Set these repository variables before enabling the winget.yml workflow:
PACKAGE_IDENTIFIER such as YourName.lscpu-win
PACKAGE_NAME such as lscpu-win
PUBLISHER such as YourName
SHORT_DESCRIPTION such as Windows-native lscpu replacement
MONIKER such as lscpu-win
LICENSE such as MIT
LICENSE_URL such as https://github.com/axeprpr/lscpu-win/blob/main/LICENSE
HOMEPAGE such as https://github.com/axeprpr/lscpu-win
WINGET_FORK_OWNER for your GitHub username that owns the winget-pkgs fork
Set this repository secret or variable:
WINGET_PKGS_PAT with permission to push to your winget-pkgs fork and open pull requests
Notes
Windows already exposes some CPU details through systeminfo, wmic cpu, PowerShell CIM, and Task Manager, but there is no built-in lscpu command.