A simple CLI tool written in Go to interact with the PartFuse API.
- Copy
.env.exampleto.envin the root (scripts look for environment variables). - Set
PARTFUSE_RAPIDAPI_KEYin your environment manually:(Or rely on the providedexport PARTFUSE_RAPIDAPI_KEY=your_key.envif you add a loader like godotenv, but this example uses pure stdlib so you must export env vars manually).
# Search
go run main.go search "STM32" --limit 3
# Compare
go run main.go compare "LM7805" --qty 10
# BOM (uses hardcoded sample)
go run main.go bom
# Health
go run main.go health