Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,44 @@ npm run build
npm run start
```

## CLI Usage

mdify also provides a powerful command-line interface for converting articles directly from your terminal.

**Features:**
- Interactive mode (prompts for URL if not provided)
- Copy to clipboard support
- Batch processing from a file
- Save to custom output path

**Commands:**

1. **Interactive Mode:**
```bash
npm run cli
```

2. **Single URL:**
```bash
npm run cli -- <url>
```

3. **Copy to Clipboard:**
```bash
npm run cli -- <url> --copy
```

4. **Batch Processing:**
Create a file `urls.txt` with one URL per line, then run:
```bash
npm run cli -- --batch urls.txt
```

5. **Custom Output:**
```bash
npm run cli -- <url> --output ./my-article.md
```

## Project Structure

```
Expand Down
Loading