feat: initial CLI structure

- init: create plugin boilerplate
- install: install from local path with deps
- list: show installed plugins
- validate: check manyplug.json syntax
This commit is contained in:
synt-xerror
2026-04-09 01:15:00 -03:00
commit bbc44bec52
83 changed files with 11356 additions and 0 deletions

61
README.md Normal file
View File

@@ -0,0 +1,61 @@
# ManyPlug
CLI plugin manager for ManyBot.
## Install
```bash
npm install -g manyplug
# or
npm link # for development
```
## Usage
```bash
# Create new plugin
manyplug init my-plugin --category games
# Install plugin from local path
manyplug install --local ../my-plugin
# List installed plugins
manyplug list
# Validate manyplug.json
manyplug validate
manyplug validate ./my-plugin
```
## Commands
| Command | Description |
|---------|-------------|
| `init <name>` | Create new plugin boilerplate |
| `install [name]` | Install from registry or `--local <path>` |
| `list` | List installed plugins |
| `validate [path]` | Validate manyplug.json |
## Plugin Structure
```
my-plugin/
├── manyplug.json # Plugin metadata
├── index.js # Entry point
└── locale/ # Translations
└── pt.json
```
### manyplug.json
```json
{
"name": "my-plugin",
"version": "1.0.0",
"category": "games",
"service": false,
"dependencies": {}
}
```
**Categories:** games, media, utility, service, admin, fun