Skip to content

Bootstrap

The CrabNebula Cloud CLI offers a bootstrap command that helps you prepare your application to be distributed using Cloud. It performs the following tasks:

  • ensure your organization and application exists in the CrabNebula Cloud platform
  • set up your Tauri application with support to auto-updates via Cloud
  • create a CrabNebula Cloud API key
  • optionally set up a release GitHub Action workflow for Tauri v1 or Tauri v2.

Usage

After installing the CLI, you can simply run the bootstrap command inside a Tauri app project:

Terminal window
cd path/to/app
cn bootstrap

The bootstrap CLI command must sign-in to CrabNebula Cloud to ensure your organization, application and API key are set up. When you execute cn bootstrap, it opens the browser to authenticate with https://web.crabnebula.cloud.

After signing in, switch back to the terminal to complete the following bootstrap steps:

  1. Choose a CrabNebula Cloud application to upload releases to by either:

    • Creating your first organization and application.
    • Selecting an existing organization and application.
  2. (Optional) Create a new CrabNebula Cloud API key to upload releases unless you already have one set up.

  3. If a Tauri project can be found in the current working directory, the CLI will set up the Tauri updater with CrabNebula Cloud support.

    • The tauri.conf.json file will be updated to include the required Tauri updater configuration
    • A new updater signing key is generated
    • For tauri v2 the updater plugin is added to the application
  4. Additionally the bootstrap command generates a basic GitHub action release workflow that uploads assets to CrabNebula Cloud.