# Stackbit CLI

## Documentation

To learn more about Stackbit CLI please visit [documentation](https://www.stackbit.com/docs/stackbit-cli/)

## Install

```bash
npm install -g @stackbit/cli
```

## Generate stackbit.yaml

To generate a new `stackbit.yaml` file, run the `init` command inside your project's root folder:

```shell
cd my-website
stackbit init
```


## Validate stackbit.yaml

To validate `stackbit.yaml` and your website's content files against the content model defined in `stackbit.yaml`, run the `validate` command in project with `stackbit.yaml`:

```bash
stackbit validate
```
