Skip to main content

Getting Started

create-twiggle-app is the official CLI tool to bootstrap a new Twiggle project. It automates the setup of your development environment, including project structure, build configurations, and dependencies.

Create a New Project

To create a new Twiggle project, run one of the following commands in your terminal:

Using npm:

npx create-twiggle-app my-twiggle-app

Using Yarn:

yarn create twiggle-app my-twiggle-app

Using pnpm:

pnpm create twiggle-app my-twiggle-app

Replace my-twiggle-app with your project name.

Start the Development Server

Once the project is created, navigate into the project directory and start the development server:

cd my-twiggle-app
npm run dev

Your Twiggle application will be running at http://localhost:5173.

Live Code Example

Here's a simple Twiggle counter component: