> ## Documentation Index
> Fetch the complete documentation index at: https://herwaka.shesharp.org.nz/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Up Your Tools

> Install Node.js, Gemini CLI, Wispr Flow, and Typst — everything you need before creating professional PDFs.

Before we start building, let's get your tools ready. This page walks you through each step.

> [!WARNING]
>
> **You will need:** a laptop with internet access. No coding experience is required — we will guide you through every step.

## Step-by-Step Setup

**1. Download Wispr Flow (optional)**

> [!NOTE]
>
> **This step is optional.** Wispr Flow lets you speak instead of type — handy if you prefer talking over typing. Skip this step if you'd rather type your prompts.

> [!TIP]
>
> **Sign up using this invite link to get a free month of Pro:**
> [https://wisprflow.ai/r?CHAN115](https://wisprflow.ai/r?CHAN115)
>
> Both you and the tutorial author benefit — you get a free month of Pro, and they get a free month when you dictate 2,000 words!

1. **Sign up** at [wisprflow.ai/r?CHAN115](https://wisprflow.ai/r?CHAN115)
2. **Download and install** the app for your operating system
3. **Configure settings** — enable these options for the best experience:
   * Experimental > **Command Mode** — Enable advanced voice commands
   * **Press Enter Command** — Automatically press enter when you say "press enter"
   * **Bulk Import** — Import snippets and dictionary items

> [accordion] What is Wispr Flow?
>
> Wispr Flow is a voice-to-text tool that lets you dictate instead of type. It works in any application, including your terminal. Instead of typing a long prompt to Gemini CLI, you can just say it out loud. This is especially useful if you find typing slow or tiring.

**2. Install Node.js**

Node.js is a free tool that lets you run Gemini CLI on your computer.

> [tab] Windows
>
> 1. Go to [nodejs.org](https://nodejs.org)
> 2. Click the big green **LTS** button to download the installer
> 3. Open the downloaded `.msi` file
> 4. Click **Next** through all the screens — the default settings are fine
> 5. Click **Install**, then **Finish**

> [tab] macOS
>
> 1. Go to [nodejs.org](https://nodejs.org)
> 2. Click the big green **LTS** button to download the installer
> 3. Open the downloaded `.pkg` file
> 4. Click **Continue** through all the screens — the default settings are fine
> 5. Click **Install**, then **Close**

> [accordion] How do I know it worked?
>
> Open your terminal and type:
>
> ```bash theme={null}
> node --version
> ```
>
> You should see a version number like `v22.x.x`. If you see an error, try closing and reopening your terminal, then run the command again.

**3. Learn to open your terminal**

The terminal is a program where you type commands. It looks like a dark window with text — this is completely normal. Don't be intimidated!

> [tab] Windows
>
> 1. Press the **Windows key** on your keyboard
> 2. Type **PowerShell**
> 3. Click **Windows PowerShell** in the search results
>
> You'll see a dark blue window with a blinking cursor. That's your terminal!

> [tab] macOS
>
> 1. Press **Cmd + Space** to open Spotlight
> 2. Type **Terminal**
> 3. Press **Enter**
>
> You'll see a window with a blinking cursor. That's your terminal!

> [!TIP]
>
> The terminal is where you'll type commands to install tools and talk to AI. You'll be using it a lot in this tutorial — keep it open!

> [accordion] How to open a terminal in a specific folder
>
> Later in this tutorial, you'll need to open a terminal inside your project folder. Here's how:
>
> **Windows:** Open the folder in File Explorer. Click the address bar at the top, type `powershell`, and press Enter. A terminal opens right in that folder.
>
> **macOS:** Open Finder and navigate to the folder. Right-click the folder and select **"Open Terminal at Folder"**. If you don't see this option, you can open Terminal normally and type `cd ` (with a space), then drag the folder into the Terminal window and press Enter.

**4. Install and test Gemini CLI**

Gemini CLI is Google's free AI assistant. It runs in your terminal and helps you with tasks based on your descriptions.

Open your terminal and type:

```bash theme={null}
npm install -g @google/gemini-cli
```

Wait for the installation to finish. Then start it by typing:

```bash theme={null}
gemini
```

The first time you run it, Gemini CLI will ask you to sign in:

* Choose **"Sign in with Google"**
* A browser window will open — sign in with your Google account
* Come back to the terminal when it says you're connected

> [!NOTE]
>
> **Free tier:** 60 requests per minute, 1,000 requests per day — more than enough for this tutorial and everyday use.

> [accordion] 'npm' is not recognised
>
> This means Node.js isn't installed correctly. Go back and reinstall Node.js. After reinstalling, **close your terminal completely and open a new one** before trying again.

> [accordion] Permission denied error
>
> **Windows:** Close PowerShell and reopen it by right-clicking and choosing **"Run as Administrator"**. Then try the install command again.
>
> **macOS:** Add `sudo` before the command:
>
> ```bash theme={null}
> sudo npm install -g @google/gemini-cli
> ```
>
> Enter your computer password when prompted (you won't see characters as you type — that's normal).

**5. Install Typst CLI**

Typst is a free, open-source typesetting system that turns simple text files into beautiful PDFs.

> [tab] Windows
>
> Open PowerShell and run:
>
> ```bash theme={null}
> winget install --id Typst.Typst
> ```
>
> Wait for the installation to finish. You may need to close and reopen your terminal afterwards.

> [tab] macOS
>
> Open Terminal and run:
>
> ```bash theme={null}
> brew install typst
> ```
>
> > [accordion] Don't have Homebrew?
> >
> > If you see `brew: command not found`, install Homebrew first by running:
> >
> > ```bash theme={null}
> > /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
> > ```
> >
> > Follow the on-screen instructions, then run `brew install typst` again.

> [accordion] Manual download fallback
>
> If the commands above don't work, you can download Typst directly:
>
> 1. Go to the [Typst releases page](https://github.com/typst/typst/releases/latest)
> 2. Download the file for your system:
>    * **Windows:** `typst-x86_64-pc-windows-msvc.zip`
>    * **macOS (Apple Silicon):** `typst-aarch64-apple-darwin.tar.xz`
>    * **macOS (Intel):** `typst-x86_64-apple-darwin.tar.xz`
> 3. Extract the downloaded file
> 4. Move the `typst` executable to a folder in your system PATH, or run it directly from the extracted folder

> [accordion] Verify the installation
>
> Open a new terminal window and type:
>
> ```bash theme={null}
> typst --version
> ```
>
> You should see a version number like `typst 0.13.x`. If you see an error, try closing and reopening your terminal first.

## Verify Your Setup

Before moving on, check that everything is ready:

> [accordion] Node.js installed
>
> Run `node --version` in your terminal. You should see a version number.

> [accordion] Terminal works
>
> You can open a terminal window and type commands.

> [accordion] Gemini CLI installed
>
> Run `gemini` in your terminal. It starts up and shows a prompt where you can type.

> [accordion] Signed in to Google
>
> Gemini CLI is connected to your Google account.

> [accordion] Typst CLI installed
>
> Run `typst --version` in your terminal. You should see a version number.

> [accordion] Wispr Flow (optional)
>
> If you installed it, you can dictate text in any application — including your terminal.

> [!NOTE]
>
> All set? Head to [Build your first PDF](https://herwaka.shesharp.org.nz/tutorial/professional-pdf/build-first-pdf.md) to create your first professional document.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.