> ## Documentation Index
> Fetch the complete documentation index at: https://cool.computer/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the Cool Computers CLI

> Install the official native Cool Computers CLI on macOS, Linux, or Windows.

Install the native `cool` command directly. It does not require Node.js or Python.

## macOS and Linux

```sh theme={null}
curl -fsSL https://cool.computer/install.sh | sh
```

## Windows PowerShell

```powershell theme={null}
(iwr -UseBasicParsing https://cool.computer/install.ps1).Content | iex
```

The installer adds `cool` to the current PowerShell session and your user `PATH`. Restart terminal apps that were already open before installation.

## Update

<Tabs>
  <Tab title="macOS and Linux">
    ```sh theme={null}
    curl -fsSL https://cool.computer/install.sh | sh
    ```
  </Tab>

  <Tab title="Windows PowerShell">
    ```powershell theme={null}
    (iwr -UseBasicParsing https://cool.computer/install.ps1).Content | iex
    ```
  </Tab>
</Tabs>

## Remove

<Tabs>
  <Tab title="macOS and Linux">
    ```sh theme={null}
    rm -f ~/.local/bin/cool
    ```
  </Tab>

  <Tab title="Windows PowerShell">
    ```powershell theme={null}
    $installDir = "$env:LOCALAPPDATA\Programs\coolcomputer"
    Remove-Item -LiteralPath "$installDir\cool.exe" -Force
    $environmentKey = [Microsoft.Win32.Registry]::CurrentUser.OpenSubKey(
      "Environment",
      $true
    )
    $pathKind = $environmentKey.GetValueKind("Path")
    $userPath = [string]$environmentKey.GetValue(
      "Path",
      "",
      [Microsoft.Win32.RegistryValueOptions]::DoNotExpandEnvironmentNames
    )
    $cleanPath = (($userPath -split ";") | Where-Object {
      [Environment]::ExpandEnvironmentVariables($_) -ne $installDir
    }) -join ";"
    $environmentKey.SetValue("Path", $cleanPath, $pathKind)
    $environmentKey.Dispose()
    ```

    Restart terminal apps that were open before removal.
  </Tab>
</Tabs>
