Search documentation v0.6.1

CLI

How to install Webcore using the CLI

Source ↗️ Report Issue ↗️

To start a new project with Webcore, you can use the CLI to bootstrap projects with a single command. Run the following in your terminal and follow the prompts to finish installation:

Terminal window
npm create webcore@latest

API

The CLI can also be used programmatically to create Webcore projects on the fly. To get started, install the CLI as a dependency for your project:

Terminal window
npm i create-webcore
Terminal window
yarn add create-webcore

You can import the create function from the package and call it with the following configuration object to generate a new Webcore project:

import { create } from 'create-webcore'
await create({
dir: './my-app',
framework: 'astro',
})
PropertyDefaultPurpose
dir ./ Sets the working directory where the project will be bootstrapped.
framework astro The framework to setup. Can be one of "astro", "svelte", "react".

Request improvement for this page