Skip to content

Conversation

@VAIBHAVSING
Copy link

Summary

This PR introduces create-statue - a new CLI tool that simplifies the statue-ssg project setup from a complex 7-step command to a single command:

npm create statue@latest my-site

Features

  • ✅ Interactive prompts for project configuration
  • ✅ Template selection (Default, Blog)
  • ✅ Theme selection (10 beautiful themes)
  • ✅ TypeScript support (optional)
  • ✅ Non-interactive mode with --yes flag
  • ✅ Cross-platform support (Linux, macOS, Windows)
  • ✅ Clean UX inspired by Next.js and Vite

How It Works

  1. Scaffolds minimal SvelteKit base with config files
  2. Installs dependencies (including statue-ssg)
  3. Runs npx statue init --template <selected>
  4. Applies selected theme

Changes

  • Created packages/create-statue/ package
  • Updated main README with new setup command
  • Templates come from statue-ssg (no duplication)

Testing

Tested successfully on Linux with both interactive and non-interactive modes. All templates and themes working correctly.

@VAIBHAVSING VAIBHAVSING marked this pull request as draft December 21, 2025 19:20
@VAIBHAVSING
Copy link
Author

this is test of cli tool (cli is inspired from nextjs cli)
image

@VAIBHAVSING
Copy link
Author

for testing this
cd packages/create-statue && npm link

move to your destination folder where you want to create new project
npx create-statue

@VAIBHAVSING VAIBHAVSING marked this pull request as ready for review January 2, 2026 18:15
@fredxfred
Copy link
Contributor

@semihpolat can you test this/verify it and make sure our tests are updated to accomodate this?

@fredxfred fredxfred requested a review from semihpolat January 2, 2026 23:02
@fredxfred
Copy link
Contributor

regarding the README.md @VAIBHAVSING let's leave the existing instructions for now and instead include the npm create commands in a section lower in the docs. Once we merge this in and make sure the new creation path works properly and push to npm, then we can remove the existing instructions in a followup PR

@semihpolat
Copy link
Contributor

@semihpolat can you test this/verify it and make sure our tests are updated to accomodate this?

I’ve now simplified it a bit more and tested it across all our themes and templates (including developer-portfolio). In this form, it’s working as expected.

@semihpolat
Copy link
Contributor

We need a name for it before merge @fredxfred. it's like sv of npx sv create

@VAIBHAVSING
Copy link
Author

VAIBHAVSING commented Jan 7, 2026

I think name with start create-
Because it open two interface
npx create-statue@latest
npm create statue@latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants