Prerequisites, installation, and step-by-step guide to running the create-woonext-app CLI.
This guide walks you through running create-woonext-app to generate your WooGraphQL-powered Next.js storefront.
Your WordPress site needs:
A valid WooGraphQL Pro license is required. Get yours at woographql.com/pro.
Run the CLI with your license key:
npx create-woonext-app YOUR_LICENSE_KEY
Follow the interactive prompts to configure your project.
npx create-woonext-app <license> [options] Arguments: <license> Your WooGraphQL Pro License key Options: -h, --help Show help -v, --version Show CLI version --use-npm Use npm as package manager --use-pnpm Use pnpm as package manager --use-yarn Use yarn as package manager --use-bun Use bun as package manager --next-version Specify Next.js version
The create-woonext-app CLI performs these steps:
create-next-app with your chosen optionswoonext install script from @woographql/nextAfter the base Next.js app is created, the CLI runs the woonext install command from @woographql/next. This script:
For detailed documentation on the install script options and generated files, see the @woographql/next documentation.
After generation completes:
cd my-store npm run dev
Your storefront will be available at http://localhost:3000.
The generated project includes these packages:
| Package | Description |
|---|---|
| @woographql/next | Templates, CLI, and Next.js utilities |
| @woographql/react-hooks | React hooks for session, cart, and products |
| @woographql/session-utils | Token lifecycle management |
| @woographql/codegen | GraphQL Code Generator wrapper |
Your license key is stored in .npmrc to access private packages:
registry=https://registry.npmjs.org/
@woographql:registry=https://yeetsquad.net/
//yeetsquad.net/:_authToken="YOUR_LICENSE_KEY"
always-auth=true
Important: Keep your license key secure. Don't commit .npmrc to public repositories.