|
| 1 | +# DevMate (`mate`) — The Developer's Companion |
| 2 | + |
| 3 | +Welcome to the official documentation for **DevMate**. |
| 4 | + |
| 5 | +DevMate is a high-performance, developer-centric orchestration tool designed to bridge the gap between your local source code and a fully functional containerized environment. |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +## 🛠️ Commands & Examples |
| 10 | + |
| 11 | +Use `mate docs <command>` for even more specialized guides. |
| 12 | + |
| 13 | +### 1. `init` (System Audit) |
| 14 | +Ensure your environment is ready. |
| 15 | +- **Example**: `mate init` |
| 16 | +- **Verbose**: `mate init --verbose` |
| 17 | +- **Alias**: `mate doctor` |
| 18 | + |
| 19 | +### 2. `clone` (Smart Fetch) |
| 20 | +Download repositories with automatic naming. |
| 21 | +- **Default**: `mate clone https://github.com/user/my-app.git` |
| 22 | +- **Custom Dir**: `mate clone <URL> --dir ./src` |
| 23 | +- **SSH**: `mate clone git@github.com:user/repo.git` |
| 24 | + |
| 25 | +### 3. `up` (Orchestrate) |
| 26 | +Build and start your services. |
| 27 | +- **Compose**: `mate up` (auto-detects `compose.yaml`) |
| 28 | +- **Dockerfile**: `mate up --port 8080:80` (auto-maps local port) |
| 29 | +- **Force**: `mate up --force --pull always` (fresh build) |
| 30 | + |
| 31 | +### 4. `deploy` (One-Touch) |
| 32 | +Clone and start in one command. |
| 33 | +- **Compose Stack**: `mate deploy https://github.com/user/api-stack.git` |
| 34 | +- **Single Service**: `mate deploy <URL> --port 3000:3000` |
| 35 | +- **Branch/Sub-location**: `mate deploy <URL> --branch dev --location ./app` |
| 36 | + |
| 37 | +### 5. `status` (Monitor) |
| 38 | +Real-time dashboard of your containers. |
| 39 | +- **Standard**: `mate status` |
| 40 | +- **Inspection**: `mate status --volume --health` |
| 41 | +- **Filtered**: `mate status --stopped --all` |
| 42 | + |
| 43 | +### 6. `shell` (Interact) |
| 44 | +Instant terminal access into containers. |
| 45 | +- **Interactive**: `mate shell` (picks best container) |
| 46 | +- **Direct**: `mate shell --name redis-service` |
| 47 | +- **Custom Shell**: `mate shell --sh /bin/bash` |
| 48 | + |
| 49 | +### 7. `logs` (Stream) |
| 50 | +Monitor application output. |
| 51 | +- **Follow All**: `mate logs -f` |
| 52 | +- **Service Specific**: `mate logs --container api-gw --tail 200` |
| 53 | +- **Quick Check**: `mate logs` |
| 54 | + |
| 55 | +### 8. `health` (Audit) |
| 56 | +Validate endpoint responsiveness. |
| 57 | +- **Local HTTP**: `mate health --port 8080` |
| 58 | +- **Internal API**: `mate health -P 5000 -p /health --max-retries 5` |
| 59 | +- **TCP Check**: `mate health --url tcp://localhost:5432` |
| 60 | + |
| 61 | +### 9. `down` (Cleanup) |
| 62 | +Safe environment shutdown. |
| 63 | +- **Compose Reset**: `mate down` |
| 64 | +- **Full Removal**: `mate down -v -i` (deletes volumes/images) |
| 65 | +- **Specific Container**: `mate down --container-name test-db` |
| 66 | + |
| 67 | +--- |
| 68 | + |
| 69 | +## Quick Start - The most common workflow |
| 70 | +```bash |
| 71 | +mate init # 1. Check system |
| 72 | +mate deploy https://github.com/user/project # 2. Get it running |
| 73 | +mate status # 3. Verify services |
| 74 | +``` |
| 75 | +for more workflows run `mate docs workflow` |
| 76 | +*DevMate — Build faster, debug less.* |
0 commit comments