The fastest way to create a new Specra documentation site. Scaffold a complete documentation project with a single command.
npx create-specra my-docsnpm create specra my-docsyarn create specra my-docspnpm create specra my-docsnpx create-specra [project-directory] [options][project-directory]- The directory to create the project in (optional, will prompt if not provided)
--template <template>- Template to use:minimal,book-docs,jbrains-docs(will prompt if not provided)--use-npm- Use npm as the package manager--use-pnpm- Use pnpm as the package manager--use-yarn- Use yarn as the package manager--skip-install- Skip package installation
Minimal setup to get started quickly:
- Basic documentation structure
- Essential configuration
- Clean starting point
- Ready to customize
Knowledge base style inspired by popular docs platforms:
- Dark theme by default
- Categorized sidebar with section headers (Content, Customization)
- Site-wide banner
- Flush sidebar layout (attached to screen edge)
- Version badge in sidebar
Reference documentation style with tabbed navigation:
- Light theme by default
- Tab groups for organizing content (Language, Multiplatform)
- Collapsible tree-style sidebar
- No table of contents (right panel)
- Flush sidebar layout
- Version badge in sidebar
Create a new project with interactive prompts:
npx create-specraCreate a project with the minimal template using npm:
npx create-specra my-docs --template minimal --use-npmCreate a project with the book-docs template:
npx create-specra my-docs --template book-docsCreate a project and skip installation:
npx create-specra my-docs --skip-installThe CLI creates a new SvelteKit project with Specra pre-configured:
my-docs/
├── src/
│ ├── routes/
│ │ ├── +layout.svelte
│ │ ├── +page.svelte
│ │ └── docs/
│ │ └── [version]/[...slug]/
│ │ ├── +page.svelte
│ │ └── +page.ts
│ └── app.html
├── docs/
│ └── v1.0.0/
│ └── index.mdx
├── static/
├── specra.config.json
├── svelte.config.js
├── vite.config.ts
└── package.json
Once your project is created, you can:
-
Start the development server:
cd my-docs npm run dev -
Open http://localhost:5173 in your browser
-
Edit your documentation in the
docs/directory -
Customize your site in
specra.config.json
Specra is a modern documentation library for SvelteKit that provides:
- Multi-version documentation support
- API reference generation
- Full-text search
- MDX-powered content
- Beautiful UI components
The official Specra site (specra-docs) also offers a SaaS platform with paid tiers (Starter, Pro, Enterprise) including authentication, Stripe/M-Pesa billing, and a user dashboard. The CLI scaffolds free, self-hosted documentation sites — no billing features are included in generated projects.
MIT with Branding Requirement — see LICENSE.MD.
All documentation sites generated with create-specra display a "Powered by Specra" watermark by default. Removing the watermark requires an active paid subscription (Starter tier or above) at specra-docs.com. Unauthorized removal is a copyright violation.
dalmasonto, arthur-kamau