> ## Documentation Index
> Fetch the complete documentation index at: https://subframe-59800133-apg-edit-updates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Next.js

> Install Subframe in Next.js projects.

<Note>
  This guide assumes that you have already setup Tailwind CSS in your Next.js app. If you haven't, first follow the
  [Next.js](https://nextjs.org/docs/app/getting-started/installation) and [Tailwind
  CSS](https://v3.tailwindcss.com/docs/installation/using-postcss) installation guides.
</Note>

### Install Subframe

Run the following command in the root of your repository to install Subframe and configure your project:

<CodeGroup>
  ```bash npm theme={null}
  npx @subframe/cli@latest init
  ```

  ```bash yarn theme={null}
  yarn dlx @subframe/cli@latest init
  ```

  ```bash pnpm theme={null}
  pnpx @subframe/cli@latest init
  ```

  ```bash bun theme={null}
  bunx --bun @subframe/cli@latest init
  ```
</CodeGroup>

### Troubleshooting

If you run into any issues with the installation, refer to the [manual installation guide](/frameworks/manual) for all of the steps needed to get Subframe working in your codebase.
