Package Exports
- model-forge-cli
- model-forge-cli/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (model-forge-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ModelForge
A production-ready CLI tool for hardware detection and publishing system specifications.
Features
- Hardware Detection: Automatically detects CPU, RAM, GPU, and OS information
- NVIDIA GPU Support: Detects NVIDIA GPUs and CUDA availability via nvidia-smi
- Capability Detection: Identifies AVX/AVX2/AVX512 CPU capabilities
- Interactive CLI: Clean, colored terminal output with spinners
- API Publishing: Optional publishing to remote API
Installation
npm install -g model-forgeOr run directly with npx:
npx model-forge scanUsage
Basic Scan
model-forge scanOutput:
✔ Hardware analyzed
CPU: Ryzen 7 5800X (16 cores)
RAM: 32 GB
GPU: RTX 3070 (8 GB VRAM)
OS: WindowsJSON Output
model-forge scan --jsonSkip Confirmation
model-forge scan --yesSilent Mode
model-forge scan --silentOptions
| Flag | Description |
|---|---|
--json |
Output raw JSON only |
--yes |
Skip confirmation prompt |
--silent |
Minimal output |
Development
# Install dependencies
npm install
# Build
npm run build
# Run locally
node dist/bin.js scan
# Link for global testing
npm linkRelease Workflow
# Patch release
npm run release:patch
# Minor release
npm run release:minor
# Major release
npm run release:major
# Custom release (with publish)
node scripts/release.js --minor
# Release without publishing
node scripts/release.js --patch --no-publishProject Structure
model-forge/
├── bin/ # CLI entry point
├── dist/ # Built output
├── scripts/ # Build & release scripts
├── src/
│ ├── index.js # CLI commander setup
│ ├── hardware.js # System information collection
│ ├── normalize.js # Data normalization
│ ├── display.js # Terminal output
│ ├── prompt.js # Interactive prompts
│ └── api.js # API integration
├── package.json
└── CHANGELOG.mdLicense
MIT