Docs

Packages

CLI

Installation

bash
pnpm add -g @arovi/pagekit-cli

Quick Start

bash
# In your project directory
pagekit init

The CLI will:

  1. Detect your framework (Next.js, Astro, Nuxt, SvelteKit, Vite, Remix, Gatsby)
  2. Ask what you're building
  3. Create/update .env.local with PAGEKIT_API_KEY
  4. Install @arovi/pagekit-core automatically

Commands

pagekit init

Initialize PageKit in your current project.

bash
pagekit init
# ? What are you building? › Blog
# ✓ Next.js detected
# ✓ Created .env.local with PAGEKIT_API_KEY
# ✓ Installed @arovi/pagekit-core

pagekit --version

Show the CLI version.

pagekit --help

Show all available commands and options.

Framework Detection

FrameworkDetection Files
Next.jsnext.config.js, next.config.mjs, next.config.ts
Astroastro.config.mjs, astro.config.ts
Nuxtnuxt.config.ts, nuxt.config.js
SvelteKitsvelte.config.js, svelte.config.ts
Vitevite.config.ts, vite.config.js
Remixremix.config.js, remix.config.ts
Gatsbygatsby.config.js, gatsby.config.ts

Example Workflow

bash
# 1. Create a new Next.js project
npx create-next-app@latest my-blog
cd my-blog

# 2. Initialize PageKit
pagekit init

# 3. Set your API key
echo "PAGEKIT_API_KEY=pk_live_..." > .env.local

# 4. Start building

Package Manager Support

  • pnpm — if pnpm-lock.yaml exists
  • Yarn — if yarn.lock exists
  • npm — fallback