iconify_sdk_cli 0.2.0
iconify_sdk_cli: ^0.2.0 copied to clipboard
Command-line tool for the Iconify SDK. Downloads icon sets and generates Dart code from your iconify.yaml configuration.
iconify_sdk_cli #
The command-line interface for the Iconify SDK. Manage project configuration, synchronize icon collections from GitHub, and audit your icon usage.
Installation #
Add the CLI to your dev_dependencies:
dev_dependencies:
iconify_sdk_cli: ^0.2.0
Commands #
Run these via dart run iconify_sdk_cli:iconify <command> or globally via iconify <command>.
init #
Initialize an iconify.yaml configuration file in your project.
dart run iconify_sdk_cli:iconify init
sync #
Download full icon collections from GitHub Raw source to your local data directory.
dart run iconify_sdk_cli:iconify sync
doctor #
Check the health of your Iconify setup, including missing snapshots and attribution warnings.
dart run iconify_sdk_cli:iconify doctor
generate #
Manually trigger the icon bundling process (same logic as the build_runner builder).
dart run iconify_sdk_cli:iconify generate
licenses #
Generate a comprehensive license and attribution report for the icons used in your app.
dart run iconify_sdk_cli:iconify licenses --format=markdown > ICON_LICENSES.md
Configuration #
The CLI is driven by an iconify.yaml file in your project root.
sets:
- mdi:*
- lucide:rocket
data_dir: assets/iconify
output: lib/icons.g.dart
mode: auto
license_policy: warn
License #
This project is licensed under the MIT License. See the LICENSE file for details.