@alucpro/tool-manage
v0.1.1
Published
Register, inspect, list, and remove locally available pnpm CLI commands with the tm command.
Maintainers
Readme
tool-manage
Register, inspect, list, and remove locally available CLI commands with tm.
tool-manage is designed for developers who have multiple local npm CLI tools installed and want a simple registry to keep track of them. It can show command metadata such as description, version, repository, author, and --help output.
Install
npm install -g @alucpro/tool-manageor
pnpm add -g @alucpro/tool-manageUsage
tm --help
tm
tm --register pom
tm --remove pomCommands
tm --help
tm --version
tm --register <command>
tm --remove <command>
tm --listFeatures
tm --helpshows usage plus package metadatatm --register <command>registers a command into the local registrytm --listor baretmlists all registered commandstm --remove <command>removes a registered command- command listing includes
--helpoutput, description, version, repository, and author when available
Examples
Register a locally available command:
tm -r pomList all registered commands:
tmRemove a command from the registry:
tm --remove pomHow It Works
- registered command names are stored in
~/.tool-manage/registry.json tmresolves each command from your localPATH- when available,
tmreads the command package metadata from itspackage.json tmalso executes<command> --helpto display a help preview in the list view
Local Development
npm install
npm run start -- --helpor
pnpm install
pnpm start -- --help
pnpm start -- --register pom
pnpm start -- --listPublish
Before publishing, make sure you are logged in to npm and the package name is still available:
npm whoami
npm view @alucpro/tool-manage version --registry=https://registry.npmjs.org/
pnpm publish --access public