cmdvault 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +70 -101
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # CmdVault
2
2
 
3
- A smart terminal assistant that remembers, stores, and executes shell commands using user-defined keys.
3
+ [![npm version](https://badge.fury.io/js/cmdvault.svg)](https://www.npmjs.com/package/cmdvault)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+
6
+ **A smart terminal assistant that remembers, stores, and executes your shell commands.**
7
+
8
+ Stop typing the same long commands over and over. CmdVault lets you save any command with a short, memorable key and execute it instantly. Plus, generate commands from natural language using AI!
4
9
 
5
10
  ## Features
6
11
 
@@ -18,29 +23,27 @@ A smart terminal assistant that remembers, stores, and executes shell commands u
18
23
 
19
24
  ## Installation
20
25
 
21
- ### Install Globally
26
+ Install CmdVault globally using npm:
22
27
 
23
28
  ```bash
24
- npm install -g
29
+ npm install -g cmdvault
25
30
  ```
26
31
 
27
- Or from npm (once published):
32
+ That's it! You can now use the `cm` command anywhere in your terminal.
28
33
 
29
- ```bash
30
- npm install -g cmdvault
31
- ```
34
+ ## Quick Start
32
35
 
33
- ### Local Development
36
+ Get started in 30 seconds:
34
37
 
35
38
  ```bash
36
- # Clone the repository
37
- cd smart-term
39
+ # 1. Save your first command
40
+ cm s hello echo "Hello from CmdVault!"
38
41
 
39
- # Install dependencies
40
- npm install
42
+ # 2. Run it using the key
43
+ cm hello
41
44
 
42
- # Link globally for testing
43
- npm link
45
+ # 3. View all saved commands
46
+ cm list
44
47
  ```
45
48
 
46
49
  ## Usage
@@ -215,22 +218,6 @@ cm d gs
215
218
  | `cm --help` | Show help information | `cm --help` |
216
219
  | `cm --version` | Show version | `cm --version` |
217
220
 
218
- ## Storage Location
219
-
220
- Commands are stored in a JSON file at:
221
-
222
- - **Linux/Mac:** `~/.cmvault/commands.json`
223
- - **Windows:** `C:\Users\<username>\.cmvault\commands.json`
224
-
225
- Example `commands.json`:
226
- ```json
227
- {
228
- "gs": "git status",
229
- "gp": "git pull origin main",
230
- "dev": "npm run dev"
231
- }
232
- ```
233
-
234
221
  ## Examples
235
222
 
236
223
  ### Git Workflow
@@ -321,68 +308,19 @@ cm gp
321
308
  [CM] Executed: git pull origin main
322
309
  ```
323
310
 
324
- ## Publishing to npm
325
-
326
- ### Prepare for Publishing
311
+ ## How It Works
327
312
 
328
- 1. Update `package.json` with your details:
329
-
330
- ```json
331
- {
332
- "name": "cmdvault",
333
- "author": "Your Name <your.email@example.com>",
334
- "repository": {
335
- "type": "git",
336
- "url": "https://github.com/yourusername/cmdvault"
337
- }
338
- }
339
- ```
340
-
341
- 2. Create an npm account:
342
-
343
- ```bash
344
- npm adduser
345
- ```
346
-
347
- 3. Publish:
348
-
349
- ```bash
350
- npm publish
351
- ```
352
-
353
- ### Install from npm
354
-
355
- Once published, users can install globally:
356
-
357
- ```bash
358
- npm install -g cmdvault
359
- ```
313
+ CmdVault stores your commands in a simple JSON file on your system:
360
314
 
361
- ## Project Structure
315
+ - **Linux/Mac:** `~/.cmvault/commands.json`
316
+ - **Windows:** `C:\Users\<username>\.cmvault\commands.json`
362
317
 
363
- ```
364
- smart-term/
365
- ├── bin/
366
- │ └── cm.js # Executable entry point
367
- ├── lib/
368
- │ ├── storage.js # Command storage management
369
- │ ├── executor.js # Command execution with streaming
370
- │ └── editor.js # Editor integration
371
- ├── index.js # Main CLI logic
372
- ├── package.json # Package configuration
373
- └── README.md # Documentation
374
- ```
318
+ Your commands are stored locally and never sent anywhere (except when using the AI generation feature, which sends only your prompt to the selected AI provider).
375
319
 
376
320
  ## Requirements
377
321
 
378
322
  - Node.js >= 14.0.0
379
- - npm or yarn
380
-
381
- ## Dependencies
382
-
383
- - **commander** - CLI framework
384
- - **chalk** - Terminal colors
385
- - **cli-table3** - Beautiful tables
323
+ - npm (comes with Node.js)
386
324
 
387
325
  ## Troubleshooting
388
326
 
@@ -390,21 +328,18 @@ smart-term/
390
328
 
391
329
  After installation, if `cm` is not recognized:
392
330
 
393
- ```bash
394
- # Re-link the package
395
- npm link
396
-
397
- # Or check your PATH includes npm global bin
398
- npm config get prefix
399
- ```
400
-
401
- ### Permission denied
331
+ 1. **Restart your terminal** - This ensures the PATH is updated
332
+ 2. **Check npm global installation path:**
333
+ ```bash
334
+ npm config get prefix
335
+ ```
336
+ Make sure this directory is in your system PATH
402
337
 
403
- On Linux/Mac, you may need to make the bin file executable:
404
-
405
- ```bash
406
- chmod +x bin/cm.js
407
- ```
338
+ 3. **Reinstall the package:**
339
+ ```bash
340
+ npm uninstall -g cmdvault
341
+ npm install -g cmdvault
342
+ ```
408
343
 
409
344
  ### Editor not opening
410
345
 
@@ -420,14 +355,48 @@ export EDITOR=vim
420
355
  set EDITOR=notepad
421
356
  ```
422
357
 
358
+ ## FAQ
359
+
360
+ ### Is my data safe?
361
+
362
+ Yes! All your commands are stored locally on your machine in `~/.cmvault/commands.json`. Nothing is sent to external servers unless you use the AI generation feature, which only sends your natural language prompt to your chosen AI provider.
363
+
364
+ ### Can I use this on multiple machines?
365
+
366
+ Yes! You can install CmdVault on as many machines as you like. If you want to sync commands between machines, you can manually copy the `~/.cmvault/commands.json` file or use a cloud sync service like Dropbox/Google Drive.
367
+
368
+ ### Do I need an API key to use CmdVault?
369
+
370
+ No! The core functionality (saving, listing, and executing commands) works without any API key. You only need an API key if you want to use the AI command generation feature (`cm -g`).
371
+
372
+ ### What AI providers are supported?
373
+
374
+ CmdVault supports:
375
+ - OpenAI (GPT-4, GPT-3.5)
376
+ - Anthropic (Claude)
377
+ - Google Gemini
378
+ - Groq
379
+ - OpenRouter
380
+
381
+ Configure your preferred provider with `cm config`.
382
+
383
+ ### Can I export my commands?
384
+
385
+ Yes! Your commands are stored in a simple JSON file at `~/.cmvault/commands.json`. You can copy, backup, or edit this file directly.
386
+
423
387
  ## License
424
388
 
425
389
  MIT
426
390
 
427
391
  ## Contributing
428
392
 
429
- Contributions are welcome! Please feel free to submit a Pull Request.
393
+ Contributions are welcome! Please feel free to submit a Pull Request on [GitHub](https://github.com/vaddisiva5034/cmdvault).
430
394
 
431
395
  ## Support
432
396
 
433
- For issues and questions, please open an issue on GitHub.
397
+ - **Issues & Bug Reports:** [GitHub Issues](https://github.com/vaddisiva5034/cmdvault/issues)
398
+ - **npm Package:** [npmjs.com/package/cmdvault](https://www.npmjs.com/package/cmdvault)
399
+
400
+ ---
401
+
402
+ Made with ❤️ for developers who love their terminal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmdvault",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "CmdVault - A smart terminal assistant that remembers and executes shell commands",
5
5
  "main": "index.js",
6
6
  "bin": {