# @cosmicjs/blocks

A CLI for adding Blocks to your project.

## What are Blocks?

[Blocks](https://blocks.cosmicjs.com) are React components for building Cosmic powered websites and apps. Use Blocks to build website features such as landing pages, blogs, image galleries, events, and more.

## Usage

Go to the [Blocks website](https://blocks.cosmicjs.com) to get started adding Blocks to your project. You will need a Cosmic account to install the dynamic content. [Create a Cosmic account](https://app.cosmicjs.com/signup).

## add

Use the `add` command to add Blocks to your project.

The `add` command adds Blocks to your project in a new or existing `cosmic` folder and installs all required dependencies.

```bash
bunx @cosmicjs/blocks add [component]
```

### Example

```bash
bunx @cosmicjs/blocks add blog
```

## Documentation

Visit https://blocks.cosmicjs.com to view the full list of available Blocks.

## License

Licensed under the [MIT license](https://github.com/cosmicjs/blocks/blob/main/LICENSE).
