Get Started
Installation
Before creating a new application, make sure Node.js and npm are installed on your machine. h3ravel requires Node.js version 20 or higher.
You can install Node.js using the official installer or via Volta, a cross-platform tool that lets you manage and run multiple Node.js versions on your system.
Project Scaffolding
These commands will download the create-h3ravel initializer package and begin the installation process.
You may customize the initial project output using CLI flags but you can skip all that and just go ahead and install.
$ npx create h3ravel
$ npm init h3ravel@latest
$ pnpm create h3ravel@latest
$ yarn create h3ravel@latest
$ bun create h3ravel@latest
Options and Arguments
location
You can pass the target installation directory with location
as the first argument to the command. For example:
$ npm init h3ravel@latest my-app
$ pnpm create h3ravel@latest my-app
$ yarn create h3ravel@latest my-app
$ bun create h3ravel@latest my-app
This argument is optional and the command will prompt you to enter the installation location
if not provided.
Note - The target location directory must be empty or the command will fail.
--kit
| -k
You can also use your own starter kit hosted on Github, Gitlab, or Bitbucket, use the --kit
flag to define the repo URL, if not provided, you will be prompted to choose from a list of available options.
# Download from GitHub
$ npm init h3ravel -- --kit="github:github_user/repo"
# Github is the default provider, so if not specified, it will be assumed as github
$ npm init h3ravel -- --kit="github_user/repo"
# Download from GitLab
$ npm init h3ravel -- --kit="gitlab:user/repo"
# Download from BitBucket
$ npm init h3ravel -- --kit="bitbucket:user/repo"
# Download from GitHub
$ pnpm create h3ravel -- --kit="github:github_user/repo"
# Github is the default provider, so if not specified, it will be assumed as github
$ pnpm create h3ravel -- --kit="github_user/repo"
# Download from GitLab
$ pnpm create h3ravel -- --kit="gitlab:user/repo"
# Download from BitBucket
$ pnpm create h3ravel -- --kit="bitbucket:user/repo"
# Download from GitHub
$ yarn create h3ravel -- --kit="github:github_user/repo"
# Github is the default provider, so if not specified, it will be assumed as github
$ yarn create h3ravel -- --kit="github_user/repo"
# Download from GitLab
$ yarn create h3ravel -- --kit="gitlab:user/repo"
# Download from BitBucket
$ yarn create h3ravel -- --kit="bitbucket:user/repo"
# Download from GitHub
$ bun create h3ravel -- --kit="github:github_user/repo"
# Github is the default provider, so if not specified, it will be assumed as github
$ bun create h3ravel -- --kit="github_user/repo"
# Download from GitLab
$ bun create h3ravel -- --kit="gitlab:user/repo"
# Download from BitBucket
$ bun create h3ravel -- --kit="bitbucket:user/repo"
You can also pass the branch or tag name as follows:
# Branch name
$ npm init h3ravel -- --kit="github:github_user/repo#branch-name"
# Tag name
$ npm init h3ravel -- --kit="github:github_user/repo#v1.0.0"
# Branch name
$ pnpm create h3ravel -- --kit="github:github_user/repo#branch-name"
# Tag name
$ pnpm create h3ravel -- --kit="github:github_user/repo#v1.0.0"
# Branch name
$ yarn create h3ravel -- --kit="github:github_user/repo#branch-name"
# Tag name
$ yarn create h3ravel -- --kit="github:github_user/repo#v1.0.0"
# Branch name
$ bun create h3ravel -- --kit="github:github_user/repo#branch-name"
# Tag name
$ bun create h3ravel -- --kit="github:github_user/repo#v1.0.0"
--token
| -t
If you are using a custom starter kit hosted on a private repository, then you can pass the authentication token with the --token
options:
$ npm init h3ravel -- --kit="github:github_user/repo" --token="github_token"
$ pnpm create h3ravel -- --kit="github:github_user/repo" --token="github_token"
$ yarn create h3ravel -- --kit="github:github_user/repo" --token="github_token"
$ bun create h3ravel -- --kit="github:github_user/repo" --token="github_token"
Start Developing
Navigate into the newly created project folder and run the Musket CLI command to start the dev server.
$ npx musket fire"
$ npm musket fire"
$ pnpm musket fire"
$ yarn musket fire"
$ bun musket fire"
You’ll see the dev server compiling your new application and once it is finished, you'll get a link to open up your new app in your browser. That’s it! You can now develop your app with your favorite IDE / Code Editor.