Creating a Project
Project Generationโ
Now that the CLI is installed, you can generate a new project by using the wails init command.
Consider using Dev Drive to store your projects. Dev Drives are optimized for developer workloads and can significantly improve build times and disk access speeds by up to 30% compared to regular NTFS drives.
Pick your favourite framework:
- Svelte
- React
- Vue
- Preact
- Lit
- Vanilla
Generate a Svelte project using JavaScript with:
wails init -n myproject -t svelte
If you would rather use TypeScript:
wails init -n myproject -t svelte-ts
Generate a React project using JavaScript with:
wails init -n myproject -t react
If you would rather use TypeScript:
wails init -n myproject -t react-ts
Generate a Vue project using JavaScript with:
wails init -n myproject -t vue
If you would rather use TypeScript:
wails init -n myproject -t vue-ts
Generate a Preact project using JavaScript with:
wails init -n myproject -t preact
If you would rather use TypeScript:
wails init -n myproject -t preact-ts
Generate a Lit project using JavaScript with:
wails init -n myproject -t lit
If you would rather use TypeScript:
wails init -n myproject -t lit-ts
Generate a Vanilla project using JavaScript with:
wails init -n myproject -t vanilla
If you would rather use TypeScript:
wails init -n myproject -t vanilla-ts
There are also community templates available that offer different capabilities and frameworks.
To see the other options available, you can run wails init -help.
More details can be found in the CLI Reference.
Project Layoutโ
Wails projects have the following layout:
.
โโโ build/
โ โโโ appicon.png