### Create Tauri App via Bash Script Source: https://v1.tauri.app/v1/guides/getting-started/setup Installs and creates a Tauri project using a bash script fetched from the official Tauri website. This command is designed for Unix-like systems and specifies Tauri version 1. ```sh sh <(curl https://create.tauri.app/sh) --tauri-version 1 ``` -------------------------------- ### Install create-tauri-app via Cargo Source: https://v1.tauri.app/v1/guides/getting-started/setup Installs the `create-tauri-app` utility globally using Cargo, the Rust package manager. This command is essential for scaffolding new Tauri projects. ```rust cargo install create-tauri-app --locked ``` -------------------------------- ### Initialize Tauri Project with Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Scaffolds a new Tauri project using Bun. This command initiates the project creation process, guiding you through the setup questions. ```Bash bunx tauri init ``` -------------------------------- ### Initialize Tauri Project with npm Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Scaffolds a new Tauri project using npm. This command initiates the project setup process, guiding you through configuration questions. ```Bash npm run tauri init ``` -------------------------------- ### Install @sveltejs/adapter-static (Bun) Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Installs the static adapter for SvelteKit using Bun. This command adds the dependency for static site generation. ```bash bun add --dev @sveltejs/adapter-static ``` -------------------------------- ### Install and Scaffold Tauri App with Cargo Source: https://v1.tauri.app/v1/guides/getting-started/setup/vite Installs the `create-tauri-app` utility using Cargo and then scaffolds a new Tauri project with version 1. ```rust cargo install create-tauri-app --locked cargo create-tauri-app --tauri-version 1 ``` -------------------------------- ### Start Tauri Development Build Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Commands to start a development build for a Tauri application using different package managers like npm, Yarn, pnpm, bun, and Cargo. ```bash npm run tauri dev ``` ```bash yarn tauri dev ``` ```bash pnpm tauri dev ``` ```bash bunx tauri dev ``` ```bash cargo tauri dev ``` -------------------------------- ### Scaffold New Qwik Project with npm Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik This command initiates the creation of a new Qwik project using npm. It guides the user through project naming, template selection (Basic App - QwikCity), and dependency installation. ```bash npm create qwik@latest ``` -------------------------------- ### Build and Run Tauri Application Source: https://v1.tauri.app/v1/guides/testing/webdriver/example/setup This command builds and runs the Tauri application in release mode. Running with `--release` is recommended for performance and is necessary for running WebDriver tests. ```bash cargo run --release ``` -------------------------------- ### Scaffold New Qwik Project with Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik This command initiates the creation of a new Qwik project using Bun. It guides the user through project naming, template selection (Basic App - QwikCity), and dependency installation. ```bash bunx create-qwik@latest ``` -------------------------------- ### Start Tauri Development Build Source: https://v1.tauri.app/v1/guides/getting-started/setup/vite Commands to start a development build for a Tauri application using various package managers like npm, Yarn, pnpm, bun, and Cargo. ```bash npm run tauri dev ``` ```bash yarn tauri dev ``` ```bash pnpm tauri dev ``` ```bash bunx tauri dev ``` ```bash cargo tauri dev ``` -------------------------------- ### Download Tauri Icon Source: https://v1.tauri.app/v1/guides/testing/webdriver/example/setup This command downloads the default icon used in the Hello Tauri example repository. The icon is saved as `icon.png` in the current directory. ```bash curl -L "https://github.com/chippers/hello_tauri/raw/main/icon.png" --output icon.png ``` -------------------------------- ### Initialize Tauri Project with npm Source: https://v1.tauri.app/v1/guides/getting-started/setup/next-js Scaffolds a new Tauri project using npm. This command initiates the project setup process, guiding you through configuration questions. ```bash npm run tauri init ``` -------------------------------- ### Scaffold New Qwik Project with pnpm Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik This command initiates the creation of a new Qwik project using pnpm. It guides the user through project naming, template selection (Basic App - QwikCity), and dependency installation. ```bash pnpm create qwik@latest ``` -------------------------------- ### Install and Create Tauri App with Cargo Source: https://v1.tauri.app/v1/guides/getting-started/setup/html-css-js Installs the `create-tauri-app` command-line tool using Cargo and then uses it to create a new Tauri project, specifying version 1. ```cargo cargo install create-tauri-app --locked ``` ```cargo cargo create-tauri-app --tauri-version 1 ``` -------------------------------- ### Initialize Tauri Project with pnpm Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Scaffolds a new Tauri project using pnpm. This command begins the project setup, asking a series of questions to configure your application. ```Bash pnpm tauri init ``` -------------------------------- ### Scaffold New Qwik Project with Yarn Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik This command initiates the creation of a new Qwik project using Yarn. It guides the user through project naming, template selection (Basic App - QwikCity), and dependency installation. ```bash yarn create qwik@latest ``` -------------------------------- ### Install Tauri CLI with npm Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik Installs the Tauri CLI as a development dependency using npm. Ensure your project's package.json includes the 'tauri' script. ```Shell npm install --save-dev @tauri-apps/cli@">1.0.0" ``` -------------------------------- ### Install Tauri API for JavaScript Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Commands to install the `@tauri-apps/api` JavaScript library using npm, Yarn, pnpm, and Bun. This library provides abstractions for Tauri functionalities. ```bash npm install @tauri-apps/api@1 ``` ```bash yarn add @tauri-apps/api@^1.0.0 ``` ```bash pnpm add @tauri-apps/api@1 ``` ```bash bun add @tauri-apps/api@1.0.0 ``` -------------------------------- ### Scaffold SvelteKit Project (Yarn) Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Command to create a new SvelteKit project using Yarn. This command initiates the project setup process. ```bash yarn create svelte ``` -------------------------------- ### Install Tauri CLI with Cargo Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik Installs the Tauri CLI globally using Cargo, Rust's package manager. This makes the `tauri` command available system-wide. ```Shell cargo install tauri-cli --version "^1.0.0" ``` -------------------------------- ### Start Tauri Development Build Source: https://v1.tauri.app/v1/guides/getting-started/setup/next-js Commands to start a development build for your Tauri application using various package managers like npm, Yarn, pnpm, bun, and Cargo. ```bash npm run tauri dev ``` ```bash yarn tauri dev ``` ```bash pnpm tauri dev ``` ```bash bunx tauri dev ``` ```bash cargo tauri dev ``` -------------------------------- ### Tauri Configuration File Example Source: https://v1.tauri.app/v1/guides/getting-started/setup/next-js An example of the `tauri.conf.json` file, which configures various aspects of a Tauri application build process. It includes settings for development commands, the development server path, and the directory for production build assets. ```json { "build": { "beforeBuildCommand": "npm run build", "beforeDevCommand": "npm run dev", "devPath": "http://localhost:3000", "distDir": "../out" } } ``` -------------------------------- ### Initialize WebdriverIO Project with Bun Source: https://v1.tauri.app/v1/guides/testing/webdriver/example/webdriverio Installs the WebdriverIO CLI package using Bun, a modern JavaScript runtime, for setting up the testing framework. ```Shell bun add @wdio/cli ``` -------------------------------- ### Start Tauri Development Server with Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup/integrate This command starts a development build of your Tauri application using Bun. It's a fast way to get your Tauri app running in development mode. ```bash bunx tauri dev ``` -------------------------------- ### Initialize Tauri Project with Yarn Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Scaffolds a new Tauri project using Yarn. This command starts the project initialization, prompting for necessary configuration details. ```Bash yarn tauri init ``` -------------------------------- ### Create Tauri App via Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup Scaffolds a new Tauri project using Bun, a fast JavaScript runtime. This command uses `bunx` to execute `create-tauri-app` and specifies Tauri version 1. ```javascript bunx create-tauri-app --tauri-version 1 ``` -------------------------------- ### Run WebdriverIO Configuration with Yarn Source: https://v1.tauri.app/v1/guides/testing/webdriver/example/webdriverio Executes the WebdriverIO configuration command using Yarn, starting the interactive setup for the testing suite. ```Shell yarn wdio config ``` -------------------------------- ### Tauri Rust Entry Point Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik The main Rust file for a Tauri application. It bootstraps the Tauri application using `tauri::Builder` and runs the application context. The `windows_subsystem` attribute hides the console window on Windows for release builds. ```Rust #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] fn main() { tauri::Builder::default() .run(tauri::generate_context!()) .expect("error while running tauri application"); } ``` -------------------------------- ### Initialize Tauri Project with Cargo Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik Initializes a new Tauri project using the `tauri init` command executed via Cargo. This command is used when Tauri CLI is installed globally. ```Shell cargo tauri init ``` -------------------------------- ### WiX Localization XML Example Source: https://v1.tauri.app/v1/guides/building/windows An example of a WiX localization XML file used to configure language-specific strings for the installer. The 'Culture' attribute must match the configured language. ```xml Launch MyApplicationName A newer version of MyApplicationName is already installed. Add the install location of the MyApplicationName executable to the PATH system environment variable. This allows the MyApplicationName executable to be called from any location. Installs MyApplicationName. ``` -------------------------------- ### Initialize Tauri Project with Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik Initializes a new Tauri project using the `tauri init` command executed via Bun. This command scaffolds the project and its initial configuration. ```Shell bunx tauri init ``` -------------------------------- ### Initialize Tauri Project with pnpm Source: https://v1.tauri.app/v1/guides/getting-started/setup/next-js Scaffolds a new Tauri project using pnpm. This command begins the project setup, asking configuration questions to tailor the project. ```bash pnpm tauri init ``` -------------------------------- ### Create Next.js App with npm Source: https://v1.tauri.app/v1/guides/getting-started/setup/next-js Scaffolds a new Next.js project using npm. This command initiates the project setup process, allowing for customization through prompts. ```bash npx create-next-app@latest --use-npm ``` -------------------------------- ### Tauri JavaScript Updater API Example Source: https://v1.tauri.app/v1/guides/distribution/updater Demonstrates how to use the Tauri JavaScript API to check for updates, install them, and handle updater events. This example includes listening for events, checking for updates, installing, and relaunching the application. ```javascript import { checkUpdate, installUpdate, onUpdaterEvent, } from '@tauri-apps/api/updater' import { relaunch } from '@tauri-apps/api/process' const unlisten = await onUpdaterEvent(({ error, status }) => { // This will log all updater events, including status updates and errors. console.log('Updater event', error, status) }) try { const { shouldUpdate, manifest } = await checkUpdate() if (shouldUpdate) { // You could show a dialog asking the user if they want to install the update here. console.log( `Installing update ${manifest?.version}, ${manifest?.date}, ${manifest?.body}` ) // Install the update. This will also restart the app on Windows! await installUpdate() // On macOS and Linux you will need to restart the app manually. // You could use this step to display another confirmation dialog. await relaunch() } } catch (error) { console.error(error) } // you need to call unlisten if your handler goes out of scope, for example if the component is unmounted. unlisten() ``` -------------------------------- ### Create Tauri App via PowerShell Script Source: https://v1.tauri.app/v1/guides/getting-started/setup Initializes a new Tauri project using a PowerShell script downloaded from the Tauri website. This command sets the necessary environment arguments for Tauri version 1. ```powershell $Env:CTA_ARGS = "--tauri-version 1"; irm https://create.tauri.app/ps | iex ``` -------------------------------- ### Install Tauri CLI with pnpm Source: https://v1.tauri.app/v1/guides/getting-started/setup/next-js Installs the Tauri CLI as a development dependency using pnpm. pnpm is known for its efficient disk space usage and faster installation times. ```bash pnpm add -D @tauri-apps/cli@1 ``` -------------------------------- ### Install @sveltejs/adapter-static (Yarn) Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Installs the static adapter for SvelteKit using Yarn. This command adds the necessary dependency for SSG. ```bash yarn add -D @sveltejs/adapter-static ``` -------------------------------- ### Initialize Tauri Project with Cargo Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Scaffolds a new Tauri project using Cargo. This command starts the project initialization, similar to `cargo init`, and configures it for Tauri. ```Bash cargo tauri init ``` -------------------------------- ### Create Tauri App with Cargo Source: https://v1.tauri.app/v1/guides/getting-started/setup Creates a new Tauri project using the `create-tauri-app` command-line tool, specifying Tauri version 1. This is the recommended approach for new projects when using Cargo. ```rust cargo create-tauri-app --tauri-version 1 ``` -------------------------------- ### Create Tauri App via Yarn Source: https://v1.tauri.app/v1/guides/getting-started/setup Initializes a new Tauri project using Yarn, a popular JavaScript package manager. The command ensures Tauri version 1 is used for the new project. ```javascript yarn create tauri-app --tauri-version 1 ``` -------------------------------- ### Install @sveltejs/adapter-static (pnpm) Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Installs the static adapter for SvelteKit using pnpm. This ensures the static adapter is available for project configuration. ```bash pnpm add -D @sveltejs/adapter-static ``` -------------------------------- ### Run Tauri Development Build with Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup/html-css-js Starts a development build of the Tauri application using the Bun command. This command compiles and runs the Rust backend and serves the frontend. ```Shell bunx tauri dev ``` -------------------------------- ### Build Static Qwik Site with Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik This command builds the Qwik project into static HTML files using Bun, preparing it for deployment or integration with Tauri. ```bash bun run build ``` -------------------------------- ### Initialize Tauri Project with npm Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik Initializes a new Tauri project using the `tauri init` command executed via npm. This command scaffolds the basic project structure. ```Shell npm run tauri init ``` -------------------------------- ### Install Tauri CLI with Cargo Source: https://v1.tauri.app/v1/guides/getting-started/setup/html-css-js Installs the Tauri CLI using Rust's package manager, Cargo. This is the native way to install the CLI if you are primarily working within the Rust ecosystem. ```Shell cargo install tauri-cli --version "^1.0.0" ``` -------------------------------- ### Install @sveltejs/adapter-static (npm) Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Installs the static adapter for SvelteKit using npm. This adapter is crucial for configuring SvelteKit for static-site generation (SSG) with Tauri. ```bash npm install --save-dev @sveltejs/adapter-static ``` -------------------------------- ### Install Tauri CLI with Yarn Source: https://v1.tauri.app/v1/guides/getting-started/setup/next-js Installs the Tauri CLI as a development dependency using Yarn. This command is an alternative to npm for managing project dependencies. ```bash yarn add -D @tauri-apps/cli@^1.0.0 ``` -------------------------------- ### Install Tauri CLI with pnpm Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik Installs the Tauri CLI as a development dependency using pnpm. This command ensures the CLI is available for your project. ```Shell pnpm add -D @tauri-apps/cli@1 ``` -------------------------------- ### Build Static Qwik Site with npm Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik This command builds the Qwik project into static HTML files using npm, preparing it for deployment or integration with Tauri. ```bash npm run build ``` -------------------------------- ### Install Tauri CLI with Yarn Source: https://v1.tauri.app/v1/guides/getting-started/setup/vite Installs the Tauri CLI as a development dependency using Yarn. This command ensures you have the Tauri command-line interface available for your project. ```bash yarn add -D @tauri-apps/cli@^1.0.0 ``` -------------------------------- ### Tauri Application Entry Point (main.rs) Source: https://v1.tauri.app/v1/guides/testing/webdriver/example/setup This Rust code is the main entry point for the Tauri application. It initializes the Tauri builder with default settings and runs the application context, handling potential errors during execution. ```rust fn main() { tauri::Builder::default() .run(tauri::generate_context!()) .expect("unable to run Tauri application"); } ``` -------------------------------- ### Install Tauri CLI with Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Installs the Tauri CLI as a development dependency using Bun. This command is for users who prefer the Bun runtime and package manager. ```Bash bun add -D @tauri-apps/cli@1.0.0 ``` -------------------------------- ### Build Tauri Application (bun) Source: https://v1.tauri.app/v1/guides/building/windows Builds and bundles the entire Tauri application into a platform-specific bundle and installer using bun. ```bash bunx tauri build ``` -------------------------------- ### Install Tauri CLI with Yarn Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Installs the Tauri CLI as a development dependency using Yarn. This command is an alternative for users who prefer Yarn for package management. ```Bash yarn add -D @tauri-apps/cli@^1.0.0 ``` -------------------------------- ### Install Tauri API for JavaScript Source: https://v1.tauri.app/v1/guides/getting-started/setup/vite Commands to install the `@tauri-apps/api` library using npm, Yarn, pnpm, and Bun. This library provides JavaScript abstractions for Tauri functionalities. ```bash npm install @tauri-apps/api@1 ``` ```bash yarn add @tauri-apps/api@^1.0.0 ``` ```bash pnpm add @tauri-apps/api@1 ``` ```bash bun add @tauri-apps/api@1.0.0 ``` -------------------------------- ### Initialize Tauri Project with npm Source: https://v1.tauri.app/v1/guides/getting-started/setup/vite Scaffolds a new Tauri project using npm. This command initializes the Rust backend and sets up the necessary Tauri configuration files. ```bash npm run tauri init ``` -------------------------------- ### Run Tauri Development Build with Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik Starts a development build of the Tauri application using the `tauri dev` command via Bun. This command compiles the Rust backend and launches the development server. ```Shell bunx tauri dev ``` -------------------------------- ### Install Tauri CLI with Cargo Source: https://v1.tauri.app/v1/guides/getting-started/setup/vite Installs the Tauri CLI globally using Cargo, Rust's package manager. This makes the `tauri` command available system-wide. ```bash cargo install tauri-cli --version "^1.0.0" ``` -------------------------------- ### Initialize Tauri Project with Yarn Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik Initializes a new Tauri project using the `tauri init` command executed via Yarn. This command sets up the project structure and configuration files. ```Shell yarn tauri init ``` -------------------------------- ### Install Tauri CLI with pnpm Source: https://v1.tauri.app/v1/guides/getting-started/setup/vite Installs the Tauri CLI as a development dependency using pnpm. This command integrates the Tauri CLI into your project's development environment. ```bash pnpm add -D @tauri-apps/cli@1 ``` -------------------------------- ### Install Tauri CLI with pnpm Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Installs the Tauri CLI as a development dependency using pnpm. This command is suitable for users who utilize pnpm for efficient package management. ```Bash pnpm add -D @tauri-apps/cli@1 ``` -------------------------------- ### Install Tauri CLI with npm Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Installs the Tauri CLI as a development dependency using npm. This command ensures you have the necessary tools to manage your Tauri application development. ```Bash npm install --save-dev @tauri-apps/cli@">1.0.0" ``` -------------------------------- ### Build Static Qwik Site with Yarn Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik This command builds the Qwik project into static HTML files using Yarn, preparing it for deployment or integration with Tauri. ```bash yarn build ``` -------------------------------- ### Install @tauri-apps/api Source: https://v1.tauri.app/v1/guides/getting-started/setup/next-js Instructions for installing the `@tauri-apps/api` JavaScript library using npm, Yarn, pnpm, and Bun. This library provides abstractions for Tauri's core functionalities. ```bash npm install @tauri-apps/api@1 ``` ```bash yarn add @tauri-apps/api@^1.0.0 ``` ```bash pnpm add @tauri-apps/api@1 ``` ```bash bun add @tauri-apps/api@1.0.0 ``` -------------------------------- ### Minimal HTML Frontend for Tauri Source: https://v1.tauri.app/v1/guides/testing/webdriver/example/setup This HTML file serves as the basic frontend for the Tauri application. It includes minimal styling to set the background and text color, and displays a simple heading. This file is placed in the `distDir`. ```html Hello Tauri!

Hello, Tauri!

``` -------------------------------- ### Install Tauri CLI with Cargo Source: https://v1.tauri.app/v1/guides/getting-started/setup/next-js Installs the Tauri CLI globally using Cargo, Rust's package manager. This makes the `tauri` command available system-wide. ```bash cargo install tauri-cli --version "^1.0.0" ``` -------------------------------- ### Initialize Tauri Project with pnpm Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik Initializes a new Tauri project using the `tauri init` command executed via pnpm. This command creates the necessary files and directories for a Tauri application. ```Shell pnpm tauri init ``` -------------------------------- ### Install Tauri CLI with npm Source: https://v1.tauri.app/v1/guides/getting-started/setup/next-js Installs the Tauri CLI as a development dependency using npm. This command ensures you have the necessary tools to manage your Tauri application development. ```bash npm install --save-dev @tauri-apps/cli@">1.0.0" ``` -------------------------------- ### Install Tauri CLI with Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik Installs the Tauri CLI as a development dependency using Bun. This command adds the CLI to your project's development dependencies. ```Shell bun add -D @tauri-apps/cli@1.0.0 ``` -------------------------------- ### Build Static Qwik Site with pnpm Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik This command builds the Qwik project into static HTML files using pnpm, preparing it for deployment or integration with Tauri. ```bash pnpm build ``` -------------------------------- ### Install Tauri CLI with Yarn Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik Installs the Tauri CLI as a development dependency using Yarn. This command adds the necessary package to your project's dependencies. ```Shell yarn add -D @tauri-apps/cli@^1.0.0 ``` -------------------------------- ### Run Tauri Development Build with npm Source: https://v1.tauri.app/v1/guides/getting-started/setup/qwik Starts a development build of the Tauri application using the `tauri dev` command via npm. This command compiles the Rust backend and launches the development server. ```Shell npm run tauri dev ``` -------------------------------- ### Install Rust using rustup Source: https://v1.tauri.app/v1/guides/getting-started/prerequisites Installs the Rust programming language and the `rustup` toolchain manager by downloading and executing a script from the official Rust website. ```bash curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh ``` -------------------------------- ### Install Tauri CLI with Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup/vite Installs the Tauri CLI as a development dependency using Bun. This command adds the Tauri CLI to your project, enabling Tauri development workflows. ```bash bun add -D @tauri-apps/cli@1.0.0 ``` -------------------------------- ### Scaffold Tauri App with create-tauri-app (Bash) Source: https://v1.tauri.app/v1/guides/getting-started/setup/html-css-js Scaffolds a new Tauri project using the `create-tauri-app` utility via a shell script. This command fetches and executes the setup script, specifically targeting Tauri version 1. ```bash sh <(curl https://create.tauri.app/sh) --tauri-version 1 ``` -------------------------------- ### Install Tauri CLI with npm Source: https://v1.tauri.app/v1/guides/getting-started/setup/vite Installs the Tauri CLI as a development dependency using npm. This command adds the necessary tools to manage Tauri applications within your project. ```bash npm install --save-dev @tauri-apps/cli@">1.0.0" ``` -------------------------------- ### Tauri Rust Entry Point Source: https://v1.tauri.app/v1/guides/getting-started/setup/vite The main Rust file for a Tauri application. It sets up the Tauri builder and runs the application, handling window management and system calls. ```rust #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] fn main() { tauri::Builder::default() .run(tauri::generate_context!()) .expect("error while running tauri application"); } ``` -------------------------------- ### Tauri Rust Application Entry Point Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit The main Rust file (`src/main.rs`) for a Tauri application. It sets up the default Tauri builder and runs the application, handling window management and system calls. ```Rust #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] fn main() { tauri::Builder::default() .run(tauri::generate_context!()) .expect("error while running tauri application"); } ``` -------------------------------- ### Install Tauri CLI with Cargo Source: https://v1.tauri.app/v1/guides/getting-started/setup/sveltekit Installs the Tauri CLI globally using Cargo, Rust's package manager. This method is for users who manage their Rust toolchain directly. ```Bash cargo install tauri-cli --version "^1.0.0" ``` -------------------------------- ### Install Tauri CLI with pnpm Source: https://v1.tauri.app/v1/guides/getting-started/setup/html-css-js Installs the Tauri CLI package as a development dependency using pnpm. This is an efficient package manager for Node.js projects. ```Shell pnpm add -D @tauri-apps/cli@1 ``` -------------------------------- ### Install Tauri CLI with Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup/next-js Installs the Tauri CLI as a development dependency using Bun. Bun is a fast, all-in-one JavaScript runtime, bundler, transpiler, and package manager. ```bash bun add -D @tauri-apps/cli@1.0.0 ``` -------------------------------- ### Initialize Tauri Project with Bun Source: https://v1.tauri.app/v1/guides/getting-started/setup/integrate Scaffolds a new Tauri project using Bun. This command initiates the project setup process and prompts for configuration details. ```bash bunx tauri init ```