# CLI

### Installation

CodeMaker CLI can be installed on macOS or Linux operating systems using Homebrew tap.

```bash
brew install codemakerai/tap/codemaker-cli
```

### Usage

The CLI can be used for tasks like code or documentation generation and can be triggered for the entire directory structure.

#### Configuration

One time configuration is needed to specify the API Key:

```bash
codemaker configure
```

#### Code generation

The batch code generation can be done by executing the following command.

```bash
codemaker generate code **/*.java
```

#### Documentation generation

The batch documentation generation can be done by executing the following command.

```bash
codemaker generate docs **/*.java
```
