@dojoengine/create-dojo
@dojoengine/create-dojo
Interactive CLI tool for creating Dojo.js applications with various frameworks and configurations.
Usage
Run the following command to create a new Dojo.js application:
npx @dojoengine/create-dojo@latest
Features
Interactive Setup
The CLI guides you through a series of questions to configure your project:
- AkatsukiLabs Starter - Option to use the recommended game development starter
- App Type - Choose between Client App (Frontend) or Worker App (Backend)
- Contracts - Integrate with existing Dojo contracts or create new ones
- Framework Selection - Multiple framework options for client apps:
- React + Vite
- Vue + Vite
- Vanilla JS + Vite
- SvelteKit
- Additional Features - Optional features like:
- State management (Zustand, Pinia)
- UI libraries (Tailwind CSS, Shadcn/ui, Vuetify)
- Testing frameworks
- PWA support
- Linting and formatting tools
Command Line Options
You can also provide options directly to skip certain prompts:
npx @dojoengine/create-dojo@latest --use-akatsuki
npx @dojoengine/create-dojo@latest --type client --framework react-vite
npx @dojoengine/create-dojo@latest --contracts-path ../my-contracts
Available options:
-y, --yes- Skip prompts and use defaults--use-akatsuki- Use AkatsukiLabs Starter--type <type>- App type: client or worker--contracts-path <path>- Path to existing contracts--framework <framework>- Framework to use
Automatic Setup
The CLI automatically:
- Installs the latest Dojo dependencies
- Creates a proper project structure
- Generates
dojoConfig.tsbased on your contracts - Sets up TypeScript configuration
- Initializes git repository
- Installs all dependencies
Core Dependencies
All projects include:
@dojoengine/core@dojoengine/sdk@dojoengine/torii-wasm@dojoengine/predeployed-connector
Development
To work on this package:
pnpm install
pnpm build
License
MIT
Version History
| Version | Released | License |
|---|---|---|
| 2.0.0 | MIT | |
| 1.8.4 | MIT | |
| 1.8.3 | MIT | |
| 1.8.2 | MIT | |
| 1.8.1 | MIT | |
| 1.8.0 | MIT | |
| 1.7.2 | MIT | |
| 1.7.1 | MIT | |
| 1.7.0 | MIT | |
| 1.6.4 | MIT | |
| 1.6.3 | MIT | |
| 1.6.2 | MIT | |
| 1.6.0 | MIT | |
| 1.5.17 | MIT | |
| 1.5.16 | MIT | |
| 1.5.15 | MIT | |
| 1.5.14 | MIT | |
| 1.5.13 | MIT | |
| 1.5.12 | MIT | |
| 1.5.11 | MIT | |
| 1.5.10 | MIT | |
| 1.5.9 | MIT | |
| 1.5.8 | MIT | |
| 1.5.7 | MIT | |
| 1.5.6 | MIT | |
| 1.5.5 | MIT | |
| 1.5.4 | MIT | |
| 1.5.3 | MIT | |
| 1.5.2 | MIT | |
| 1.5.1 | MIT |
Showing the latest 30 of 106. See every release on npm
Pre-releases (64)
| Version | Released | License |
|---|---|---|
| 1.7.0-1.7-rc.4 | MIT | |
| 1.7.0-preview.3 | MIT | |
| 1.7.0-preview.2 | MIT | |
| 1.7.0-preview.1 | MIT | |
| 1.7.0-preview.0 | MIT | |
| 1.6.0-beta.5 | MIT | |
| 1.6.0-beta.4 | MIT | |
| 1.6.0-beta.3 | MIT | |
| 1.6.0-beta.2 | MIT | |
| 1.6.0-beta.1 | MIT | |
| 1.6.0-beta.0 | MIT | |
| 1.0.4-alpha.3.1.2 | MIT | |
| 1.0.4-alpha.3.1.1 | MIT | |
| 1.0.4-alpha.3.1.0 | MIT | |
| 1.0.4-1.0.4-alpha.3.0 | MIT | |
| 1.0.3-alpha.2 | MIT | |
| 1.0.3-alpha.1 | MIT | |
| 1.0.3-alpha.0 | MIT | |
| 1.0.0-alpha.30 | MIT | |
| 1.0.0-alpha.29 | MIT | |
| 1.0.0-alpha.28 | MIT | |
| 1.0.0-alpha.27 | MIT | |
| 1.0.0-alpha.26 | MIT | |
| 1.0.0-alpha.25 | MIT | |
| 1.0.0-alpha.24 | MIT | |
| 1.0.0-alpha.23 | MIT | |
| 1.0.0-alpha.22 | MIT | |
| 1.0.0-alpha.21 | MIT | |
| 1.0.0-alpha.20 | MIT | |
| 1.0.0-alpha.19 | MIT |
Showing the latest 30 of 64. See every release on npm