---
url: /api/cli-core/types/services/class-cli-yaml.md
description: api documentation of CliYaml from @tsed/cli-core
---

## Usage

```typescript
import { CliYaml } from "@tsed/cli-core";
```

> See [/packages/cli-core/src/services/CliYaml.ts](https://github.com/tsedio/tsed-cli/blob/v7.8.1/packages/cli-core/src/services/CliYaml.ts#L0-L0).

## Overview

```ts
class CliYaml {
    protected fs: CliFs;
    read(path: string): Promise<unknown>;
    write(path: string, obj: any): Promise<void>;
}
```

## protected fs

```ts
protected fs: CliFs;
```

## read

```ts
read(path: string): Promise<unknown>;
```

## write

```ts
write(path: string, obj: any): Promise<void>;
```
