# with yarn
yarn add @formspree/cli
```

Add Formspree's deploy script to your `package.json` as shown below:

```json{12}
{
  "name": "my-cool-site",
  "version": "0.1.0",
  "dependencies": {
    "@formspree/cli": "^0.9.6",
    "@formspree/react": "^2.2.3",
    "react": "^16.7.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "formspree-deploy": "formspree deploy"
  }
}
```

You can then append Formspree's deploy script to your build script or existing build command as follows: `npm install; npm run formspree-deploy`.

[img]