@kennyfrc/streamline-cli
v1.1.0
Published
CLI tool for Streamline Icons API
Readme
Streamline CLI
Command-line interface for the Streamline Icons API. Search, download, and manage icons directly from your terminal.
What is this?
A TypeScript CLI tool that integrates with the Streamline Icons API, allowing you to search for icons across families, download SVG/PNG files, and get detailed icon information.
Quick Start
1. Install
npm install -g @kennyfrc/streamline-cli2. Configure
streamline initEdit ~/.config/streamline/config.toml and add your API key:
[auth]
apiKey = "your-api-key-here"3. Search & Download
# Find icons
streamline search global "home" --free-only
# Download as SVG
streamline download svg ico_hash --name my-icon
# Download as PNG
streamline download png ico_hash --size 256Common Usage
Search Icons
Global search (all families):
streamline search global "user profile"
streamline search global "home" --limit 10 --free-onlyFamily search (specific family):
streamline search family "material-pro-sharp-line" "button"
streamline search family "font-awesome-regular" --limit 5Download Icons
SVG format:
streamline download svg ico_CVtS8rNWud0BTWe2
streamline download svg ico_hash --name custom-name --responsivePNG format:
streamline download png ico_hash --size 128
streamline download png ico_hash --size 512 --name high-resGet Icon Details
streamline get icon ico_CVtS8rNWud0BTWe2Command Reference
search
Global search:
streamline search global <query> [options]
Options:
--limit <n> Results per page (default: 50, max: 100)
--offset <n> Pagination offset (default: 0)
--free-only Show only free icons
--style <name> Filter by family/style
--category <name> Filter by categoryFamily search:
streamline search family <familySlug> [query] [options]
Options:
--limit <n> Results per page (default: 50, max: 100)
--offset <n> Pagination offset (default: 0)
--free-only Show only free icons
--category <name> Filter by categorydownload
SVG download:
streamline download svg <hash> [options]
Options:
--output <path> Output directory (default: current)
--name <name> Custom filename (without .svg)
--responsive Make SVG responsivePNG download:
streamline download png <hash> [options]
Options:
--output <path> Output directory (default: current)
--name <name> Custom filename (without .png)
--size <n> Size in pixels (default: 512)get
Get icon details:
streamline get icon <hash>Other Commands
streamline init # Create config file
streamline --help # Show help
streamline --version # Show versionConfiguration
Default location: ~/.config/streamline/config.toml
Priority order:
--api-keyoption (highest priority)STREAMLINE_API_KEYenvironment variable- Configuration file (default)
Get API key: https://www.streamlinehq.com/profile?tab=api_keys
Requirements
- Node.js 16+
- Streamline Icons API key
Publishing
Scoped packages publish as private by default on npm. When releasing a new version, run:
npm publish --access publicThe package also declares publishConfig.access = "public" to guard against the E402 Payment Required error.
