<commit_before># Reference: CLI

The `patternplate` command line interface is the default
way of interacting with `patternplate` functionality.

```bash
yarn global add @patternplate/cli

# Alternative without global installation
npx patternplate [command]
```

## Usage

```bash
λ patternplate start # Start a patternplate server
✔ Started on "http://localhost:1337"

λ patternplate build # Start a patternplate server
✔ Built to "docs/patterns"<commit_msg>docs: describe build correctly<commit_after># Reference: CLI

The `patternplate` command line interface is the default
way of interacting with `patternplate` functionality.

```bash
yarn global add @patternplate/cli

# Alternative without global installation
npx patternplate [command]
```

## Usage

```bash
λ patternplate start # Start a patternplate server
✔ Started on "http://localhost:1337"

λ patternplate build # Build static interface
✔ Built to "docs/patterns"
{'fraction_non_alphanumeric': 0.08512931034482758, 'fraction_numerical': 0.008620689655172414, 'mean_word_length': 5.683453237410072, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2932499', 'n_tokens_mistral': 282, 'n_tokens_neox': 252, 'n_words': 107}