> ## Documentation Index
> Fetch the complete documentation index at: https://bazable.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# bazable client

> Generate a strictly-typed TypeScript API client from your contract.

Generates a strictly-typed API client (`bazableClient.ts`) with async functions for each contracted endpoint.

## Usage

```bash theme={null}
bazable client [options]
```

## Options

<ParamField query="-o, --output" default="cwd" type="string">
  Output directory.
</ParamField>

<ParamField query="--stdout" type="boolean">
  Print to the terminal instead of writing a file.
</ParamField>

<ParamField query="--prefix" type="string">
  Prefix for generated function names.
</ParamField>

## Example

```bash theme={null}
bazable client -o ./src/api
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.