skillhub/skillhub-cli
chenbaowang 2543cd52e7 fix(cli): make --registry parameter work for all commands
Fixed the issue where the --registry command-line parameter was defined
but not actually used by any commands.

Changes:
- Added loadConfigFromProgram() helper in config.ts to read registry from program.opts()
- Updated all 21 command files to use loadConfigFromProgram() instead of loadConfig()
- Ensured correct priority: CLI args > env vars > config file > defaults

Priority order:
1. --registry <url> (command-line flag) - highest priority
2. SKILLHUB_REGISTRY (environment variable)
3. ~/.skillhub/config.json (config file)
4. http://localhost:8080 (default value)

This allows users to temporarily override the registry without modifying
environment variables or config files, providing better flexibility for:
- Testing against different registries
- Multi-project/multi-environment setups
- CI/CD automation scripts

Updated commands:
- install, download, update, check, sync, uninstall
- explore, search
- publish, delete, archive, versions
- inspect, resolve, rating, rate, star, report, reviews
- whoami, me, namespaces, notifications
- transfer, hide, unhide

Fixes issue where `npx motovis-skillhub install <skill> --registry <url>`
would ignore the --registry parameter and use env vars or defaults instead.
2026-04-21 00:07:15 +08:00
..
src fix(cli): make --registry parameter work for all commands 2026-04-21 00:07:15 +08:00
tests feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00
.npmignore feat(cli): add scope-aware universal grouping and improve output formatting 2026-04-20 19:49:17 +08:00
package.json chore(cli): bump version to 1.1.2 2026-04-20 19:53:35 +08:00
pnpm-lock.yaml fix(cli): replace execSync unzip with unzipper for cross-platform support 2026-04-16 11:18:20 +08:00
tsconfig.json feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00
unbuild.config.ts feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00
vitest.config.ts feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00