---
title: CLI
description: Commands available on Langnostic
---

{/* Reference: https://vite.dev/guide/cli.html */}

There are the following commands on Langnostic:

## `init`

```bash
# Initialize configuration
npx langnostic init
```

Initializes a configuration file in your current directory. You should customize it according to your files structure and use the necessary plugins.

## `translate`

Translates the files that match the config file.

```bash
# Run translations
npx langnostic translate
```

### `--dry-run`

Preview changes without translating. Prints out the strings that will be translated.

```bash
npx langnostic translate --dry-run
```

### `--debug`

Debug mode to see the prompts and responses of each call to the AI model. Logs are written into `.langnostic` directory.

```bash
npx langnostic translate --debug
```
