# Not for public use

### Code Connect

[Code Connect](https://github.com/figma/code-connect/blob/main/cli/README.md) uses `figma.config.json` and the `FIGMA_ACCESS_TOKEN` from the `.env` file to connect the codebase with our Figma files. Get your access token [here](https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens); you must have access to the Figma files for this to work. Reach out in the `#design-systems` channel on Slack for access.

#### Publish

```
pnpm exec figma connect publish
```

#### Unpublish

```
pnpm exec figma connect publish
```

#### Create

```
pnpm exec figma connect create "<FIGMA_COMPONENT_MAIN_LINK_FROM_DEV_MODE>"
```

> this will create a `ComponentName.figma.tsx` file at the root of the repo
