<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alucard</title>
    <description>The latest articles on DEV Community by Alucard (@alucard_is_me).</description>
    <link>https://dev.to/alucard_is_me</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3941585%2Fa1a7d9e5-497e-44bd-8d92-1620d5ce39b9.jpg</url>
      <title>DEV Community: Alucard</title>
      <link>https://dev.to/alucard_is_me</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alucard_is_me"/>
    <language>en</language>
    <item>
      <title>I Built a Local Registry for My CLI Tools</title>
      <dc:creator>Alucard</dc:creator>
      <pubDate>Wed, 20 May 2026 07:05:36 +0000</pubDate>
      <link>https://dev.to/alucard_is_me/i-built-a-local-registry-for-my-cli-tools-17p4</link>
      <guid>https://dev.to/alucard_is_me/i-built-a-local-registry-for-my-cli-tools-17p4</guid>
      <description>&lt;h1&gt;
  
  
  I Built a Local Registry for My CLI Tools
&lt;/h1&gt;

&lt;p&gt;Over time, my development machine became full of small commands.&lt;/p&gt;

&lt;p&gt;Some were global npm packages.&lt;br&gt;&lt;br&gt;
Some were pnpm tools.&lt;br&gt;&lt;br&gt;
Some were shell scripts.&lt;br&gt;&lt;br&gt;
Some were internal tools.&lt;br&gt;&lt;br&gt;
Some were small automation commands created for AI-assisted coding workflows.&lt;/p&gt;

&lt;p&gt;The problem was not installation.&lt;/p&gt;

&lt;p&gt;The problem was memory.&lt;/p&gt;

&lt;p&gt;I kept asking myself:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What does this command do?&lt;/li&gt;
&lt;li&gt;Where is the repository?&lt;/li&gt;
&lt;li&gt;Who maintains it?&lt;/li&gt;
&lt;li&gt;How do I use it?&lt;/li&gt;
&lt;li&gt;Is it still active?&lt;/li&gt;
&lt;li&gt;Why did I add it?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I built a small CLI tool called &lt;code&gt;tool-manage&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;GitHub:&lt;br&gt;
&lt;a href="https://github.com/AlucPro/tool-manage" rel="noopener noreferrer"&gt;https://github.com/AlucPro/tool-manage&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;npm:&lt;br&gt;
&lt;a href="https://www.npmjs.com/package/@alucpro/tool-manage" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@alucpro/tool-manage&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;tool-manage&lt;/code&gt; gives local commands a sqlite-backed registry.&lt;/p&gt;

&lt;p&gt;It can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;register a command from &lt;code&gt;PATH&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;save metadata&lt;/li&gt;
&lt;li&gt;store help output&lt;/li&gt;
&lt;li&gt;import JSON specs&lt;/li&gt;
&lt;li&gt;generate starter JSON templates&lt;/li&gt;
&lt;li&gt;update records&lt;/li&gt;
&lt;li&gt;soft-delete old commands&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Example
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tm &lt;span class="nt"&gt;--add&lt;/span&gt; pnpm
tm &lt;span class="nt"&gt;--show&lt;/span&gt; pnpm
tm &lt;span class="nt"&gt;--update&lt;/span&gt; pnpm

tm &lt;span class="nt"&gt;--generate&lt;/span&gt; sync-notes
tm &lt;span class="nt"&gt;--add&lt;/span&gt; ./sync-notes.json

tm &lt;span class="nt"&gt;--remove&lt;/span&gt; old-script
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Why not just use npm global list?&lt;/p&gt;

&lt;p&gt;Because I do not only want to know what is installed.&lt;/p&gt;

&lt;p&gt;I want to know what each command means in my workflow.&lt;/p&gt;

&lt;p&gt;Package managers are good at installing things.&lt;br&gt;
They are not designed to preserve the context around local commands, private scripts, or internal tools.&lt;/p&gt;

&lt;p&gt;Why JSON specs?&lt;/p&gt;

&lt;p&gt;Some tools do not expose good package metadata.&lt;/p&gt;

&lt;p&gt;Some are just shell scripts.&lt;/p&gt;

&lt;p&gt;Some are internal commands.&lt;/p&gt;

&lt;p&gt;For those cases, tool-manage can generate a starter JSON file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tm &lt;span class="nt"&gt;--generate&lt;/span&gt; sync-notes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then I can complete the description and import it later.&lt;/p&gt;

&lt;p&gt;AI-assisted workflow&lt;/p&gt;

&lt;p&gt;One use case I care about is AI-assisted coding.&lt;/p&gt;

&lt;p&gt;When an AI assistant creates or explains a script, I can ask it to generate a tool-manage JSON spec for that command.&lt;/p&gt;

&lt;p&gt;Then I can import it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tm &lt;span class="nt"&gt;--add&lt;/span&gt; ./generated-command.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This makes small tools easier to remember and reuse.&lt;/p&gt;

&lt;p&gt;What this tool is not&lt;/p&gt;

&lt;p&gt;It is not a package manager.&lt;/p&gt;

&lt;p&gt;It is not a version manager.&lt;/p&gt;

&lt;p&gt;It does not replace npm, pnpm, nvm, volta, or mise.&lt;/p&gt;

&lt;p&gt;It is just a memory layer for the commands already living on your machine.&lt;/p&gt;

&lt;p&gt;Feedback welcome&lt;/p&gt;

&lt;p&gt;I am still refining the workflow.&lt;/p&gt;

&lt;p&gt;If you maintain many small scripts, internal tools, or local CLI commands, I would like to know how you currently manage them.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>javascript</category>
      <category>cli</category>
    </item>
  </channel>
</rss>
