You must have completed all the steps required for setting up the development environment on your machine. If you haven't done this yet, please see the <ahref="/docs/getting-started/intro#setting-up-your-environment"> setup page for your operating system</a>.
</Alert>
### 1. Install Tauri CLI Package as a Dev Dependency:
```bash
cd project-folder
# Not required if you already have a package.json:
# yarn init
# OR
# npm init
yarn add -D @tauri-apps/cli
# OR
npm install -D @tauri-apps/cli
```
<Alerttitle="Note">
You can install Tauri as both a local and a global dependency, but we recommend installing it locally.
</Alert>
If you decide to use Tauri as a local package with npm (not yarn), you will have to define a custom script to your package.json:
### 1. Install Tauri API Package as a Dependency (optional):
The `@tauri-apps/api` package is recommended for projects using ES modules or modern build tools such as Webpack or Vite. It is the most secure way to access the Tauri APIs.