mdsaad-cli
Version:
š A powerful CLI toolkit with 20+ commands: AI chat, weather, math calculations, ASCII art, currency conversion, and more - all without API keys required!
228 lines (166 loc) ⢠7.54 kB
Markdown
# š MDSAAD CLI
[](https://www.npmjs.com/package/mdsaad-cli)
[](https://www.npmjs.com/package/mdsaad-cli)
[](https://nodejs.org/)
[](https://github.com/mdsaad31/mdsaad-cli/blob/main/LICENSE)
> **A powerful, secure CLI toolkit with 20+ commands for AI chat, weather, math, ASCII art, and productivity - no API keys required!**
## ⨠**Features**
š¤ **AI Assistant** - Chat with AI models without API keys
š¤ļø **Weather Info** - Real-time weather and forecasts
š§® **Math Calculator** - Advanced mathematical calculations
šØ **ASCII Art** - Beautiful text art generation
š± **Currency Converter** - Live exchange rates
š **Unit Converter** - Length, weight, temperature, and more
š¢ **Number Systems** - Binary, hex, octal conversions
š **Data Analysis** - Statistics and data processing
ā° **Time Zone** - World time conversions
š² **Random Generators** - Passwords, UUIDs, and more
š **Security Tools** - Hash generation and validation
š» **System Info** - Hardware and OS information
šÆ **QR Codes** - Generate QR codes for text/URLs
š **Text Processing** - Case conversion, validation
š **IP Tools** - Network utilities
šµ **Fun Extras** - Jokes, quotes, and games
## š **Quick Start**
### Installation
```bash
npm install -g mdsaad-cli
```
### Usage
```bash
# AI Chat
mdsaad ai "Explain quantum computing"
# Weather
mdsaad weather London
# Math Calculator
mdsaad calc "sin(45) + cos(30)"
# ASCII Art
mdsaad ascii "Hello World"
# Currency Conversion
mdsaad currency 100 USD EUR
# And much more...
mdsaad help
```
### šØ **Troubleshooting: Command Not Found**
If you get `'mdsaad' is not recognized` after installation:
**Quick Fix (Works Everywhere):**
```bash
npx mdsaad-cli --version
npx mdsaad-cli ai "Hello!"
```
**Permanent Fix:**
- **Windows**: Restart your terminal, or download our [fix script](https://github.com/mdsaad31/mdsaad-cli/raw/main/scripts/fix-windows.bat)
- **macOS/Linux**: Run `echo 'export PATH=$(npm config get prefix)/bin:$PATH' >> ~/.bashrc && source ~/.bashrc`
**Why This Happens**: npm's global directory isn't in your system PATH. Our fix scripts resolve this automatically.
š **Full troubleshooting guide**: [INSTALLATION_TROUBLESHOOTING.md](https://github.com/mdsaad31/mdsaad-cli/blob/main/INSTALLATION_TROUBLESHOOTING.md)
## šÆ **Command Categories**
### š¤ **AI & Chat**
```bash
mdsaad ai "your question" # Chat with AI
mdsaad explain "code snippet" # Code explanation
mdsaad code "create a function" # Code generation
```
### š¤ļø **Weather & Environment**
```bash
mdsaad weather <location> # Current weather
mdsaad weather <location> --forecast # 5-day forecast
```
### š§® **Mathematics & Calculations**
```bash
mdsaad calc "2 + 2 * 3" # Basic math
mdsaad calc "sqrt(16) + log(10)" # Advanced functions
mdsaad stats 1,2,3,4,5 # Statistical analysis
```
### š± **Converters & Tools**
```bash
mdsaad currency 100 USD EUR # Currency conversion
mdsaad units 100 kg lb # Unit conversion
mdsaad base 42 dec hex # Number system conversion
mdsaad time "New York" # Time zones
```
### šØ **Text & Art**
```bash
mdsaad ascii "Hello" # ASCII art
mdsaad qr "https://example.com" # QR code generation
mdsaad text "hello" upper # Text transformation
```
### š **Security & System**
```bash
mdsaad hash "text" sha256 # Hash generation
mdsaad password 16 --secure # Password generation
mdsaad uuid # UUID generation
mdsaad system # System information
mdsaad ip # IP utilities
```
### š² **Fun & Random**
```bash
mdsaad random 1 100 # Random numbers
mdsaad joke # Random jokes
mdsaad quote # Inspirational quotes
mdsaad dice 6 # Dice roll
```
## š **Security & Privacy**
ā
**No API Keys Required** - Uses secure proxy service
ā
**Zero Data Storage** - No personal data collected
ā
**Open Source** - Full transparency
ā
**Rate Limited** - Prevents abuse
ā
**Encrypted Communication** - HTTPS only
## š **Full Command List**
| Command | Description | Example |
| ---------- | ------------------------ | ------------------------------ |
| `ai` | Chat with AI assistant | `mdsaad ai "What is Node.js?"` |
| `weather` | Get weather information | `mdsaad weather Paris` |
| `calc` | Mathematical calculator | `mdsaad calc "2^8 + sqrt(64)"` |
| `ascii` | Generate ASCII art | `mdsaad ascii "HELLO"` |
| `currency` | Convert currencies | `mdsaad currency 50 GBP USD` |
| `units` | Unit conversions | `mdsaad units 25 C F` |
| `base` | Number system conversion | `mdsaad base 255 dec hex` |
| `time` | Time zone information | `mdsaad time Tokyo` |
| `stats` | Statistical analysis | `mdsaad stats 1,2,3,4,5` |
| `hash` | Generate hashes | `mdsaad hash "secret" md5` |
| `password` | Generate passwords | `mdsaad password 12 --secure` |
| `uuid` | Generate UUIDs | `mdsaad uuid` |
| `qr` | Generate QR codes | `mdsaad qr "Hello World"` |
| `text` | Text transformations | `mdsaad text "hello" title` |
| `random` | Random numbers | `mdsaad random 10 99` |
| `system` | System information | `mdsaad system` |
| `ip` | IP address utilities | `mdsaad ip` |
| `joke` | Random jokes | `mdsaad joke` |
| `quote` | Inspirational quotes | `mdsaad quote` |
| `dice` | Roll dice | `mdsaad dice 20` |
## š ļø **Requirements**
- **Node.js** 16.0.0 or higher
- **NPM** 8.0.0 or higher
- **Internet connection** (for AI, weather, currency features)
## š **Cross-Platform**
ā
**Windows** (PowerShell, CMD)
ā
**macOS** (Terminal, iTerm2)
ā
**Linux** (Bash, Zsh, Fish)
## š§ **Configuration**
The CLI works out-of-the-box with no configuration required. All API calls are routed through our secure proxy service.
### Optional: Update Check
```bash
mdsaad --version # Check version
mdsaad --help # Full help
mdsaad <command> --help # Command-specific help
```
## š¤ **Contributing**
We welcome contributions! Please see our [Contributing Guide](https://github.com/mdsaad31/mdsaad-cli/blob/main/CONTRIBUTING.md).
### Development Setup
```bash
git clone https://github.com/mdsaad31/mdsaad-cli.git
cd mdsaad-cli
npm install
npm run dev
```
## š **Bug Reports & Feature Requests**
- **GitHub Issues**: https://github.com/mdsaad31/mdsaad-cli/issues
- **Email**: mohammedsaad0462@gmail.com
## š **License**
MIT License - see [LICENSE](https://github.com/mdsaad31/mdsaad-cli/blob/main/LICENSE) file.
## š **Acknowledgments**
- Built with ā¤ļø using Node.js
- Powered by secure proxy architecture
- Inspired by developer productivity needs
---
**ā Star us on [GitHub](https://github.com/mdsaad31/mdsaad-cli) if you find this tool helpful!**