Skip to content
Tauri
Releases

Process

This plugin provides APIs to access the current process. To spawn child processes, see the shell plugin.

Setup

Install the plugin-process to get started.

Use your project’s package manager to add the dependency:

npm run tauri add process

Usage

The process plugin is available in both JavaScript and Rust.

import { exit, relaunch } from '@tauri-apps/plugin-process';
// exits the app with the given status code
await exit(0);
// restarts the app
await relaunch();

© 2024 Tauri Contributors. CC-BY / MIT