# 🚀 Easypanel Deployment Skill - Quick Start

## 5-Minute Setup

### Step 1: Verify Token (Already Done ✅)

Your token is stored in: `~/.easypanel/credentials`

### Step 2: Deploy Your First App

```bash
cd dealplustech-astro

# First deployment (creates service, saves ID)
./skills/easypanel-deploy/deploy.sh deploy
```

### Step 3: Update Your App

After making code changes:

```bash
# Rebuild and redeploy (uses saved ID)
./skills/easypanel-deploy/deploy.sh update
```

### Step 4: Check Status

```bash
# Anytime status check
./skills/easypanel-deploy/deploy.sh status
```

---

## Commands Cheat Sheet

| Command | What It Does |
|---------|-------------|
| `./deploy.sh deploy` | First-time deployment (saves ID) |
| `./deploy.sh update` | Rebuild and redeploy (uses saved ID) |
| `./deploy.sh restart` | Restart service |
| `./deploy.sh status` | Show status |
| `./deploy.sh logs` | View logs |
| `./deploy.sh list` | List all projects |

---

## How State Works

**First Deploy:**
```bash
./deploy.sh deploy
# Saves: service ID, project ID to ~/.easypanel/state.json
```

**Every Update After:**
```bash
./deploy.sh update
# Reads: service ID from state.json
# Does: Rebuild + Redeploy
```

**No need to remember IDs - skill handles it!** ✅

---

## Files Created

After first deploy:

```
~/.easypanel/
├── credentials      # Your API token (secure)
└── state.json       # Service & project IDs (auto-generated)
```

---

## Next Steps

1. **Deploy now:** `./deploy.sh deploy`
2. **Check status:** `./deploy.sh status`
3. **Make changes, then update:** `./deploy.sh update`

---

**Full docs:** `SKILL_v2.md`
