astm-cli
v1.0.2
Published
ASTM (Asset Manager) - A lightweight CLI tool to manage project assets
Readme
🌐 ASTM — Lightweight Asset Manager
ASTM (Asset Manager) is a simple, zero-dependency command-line tool to manage project assets locally.
It keeps your files organized under ~/.local/share/astm/assets and allows you to fetch them into any project destination in seconds.
🚀 Features
- 📦 Simple Asset Management: Add, list, remove, and fetch assets with ease.
- ⚡ Zero Dependencies: Pure Node.js implementation—no heavy libraries, just speed.
- 💾 Global Configuration: Set a destination once per project and fetch assets instantly.
- ⌨️ Bash Completion: Smart autocompletion support for all commands and asset names.
⚙️ Installation
Install globally via npm:
npm install -g astm-cliOr using pnpm:
pnpm add -g astm-cli🧭 Usage
astm <command> [args]Commands
| Command | Description |
| ------------------ | ---------------------------------------- |
| init <path> | Set destination path for asset fetches |
| add <name> <src> | Add a new asset from a given source path |
| fetch <name> | Copy asset to the configured destination |
| remove <name> | Delete an existing asset |
| list | Show all stored assets |
🪄 Examples
1. Initialize the asset destination
Set where you want your assets to be copied to in your current project:
astm init ./src/assets/shared2. Add an asset to your library
Store a folder or file in the global ASTM library:
astm add logo ~/Downloads/brand-logo/3. Fetch an asset into your project
Copy the stored asset into your project's initialized destination:
astm fetch logo4. List all assets
See everything you have stored:
astm list⌨️ Bash Completion
To enable bash autocompletion, add the following line to your ~/.bashrc:
source <(cat $(npm root -g)/astm-cli/completions/astm.bash)This will give you tab-suggestions for commands and even the names of your stored assets when using fetch or remove.
🧩 Directory Structure
ASTM stores everything in your home directory:
~/.local/share/astm/
├── assets/ # Your stored asset library
│ ├── logo/
│ └── icons/
└── config.json # Configuration (destination path)🧑💻 Author
ritishDas
Website
🪪 License
MIT License © 2025 ritishDas
