# Installation

## Install Script (Recommended)

### macOS / Linux

```bash
curl -sSL https://raw.githubusercontent.com/avelino/jbundle/main/install.sh | sh
```

### Windows (PowerShell)

> **Help wanted:** Windows support is best-effort. Contributions welcome — see [open issues](https://github.com/avelino/jbundle/issues).

```powershell
irm https://raw.githubusercontent.com/avelino/jbundle/main/install.ps1 | iex
```

Installs to `%USERPROFILE%\.jbundle\bin` and adds it to your PATH.

### Custom Install Directory

```bash
# macOS / Linux
JBUNDLE_INSTALL_DIR=~/.local/bin curl -sSL https://raw.githubusercontent.com/avelino/jbundle/main/install.sh | sh

# Windows
$env:JBUNDLE_INSTALL_DIR = "C:\tools" ; irm https://raw.githubusercontent.com/avelino/jbundle/main/install.ps1 | iex
```

### Install a Specific Version

```bash
# macOS / Linux
JBUNDLE_VERSION=v0.2.0 curl -sSL https://raw.githubusercontent.com/avelino/jbundle/main/install.sh | sh

# Windows
$env:JBUNDLE_VERSION = "v0.2.0" ; irm https://raw.githubusercontent.com/avelino/jbundle/main/install.ps1 | iex
```

## Homebrew

```bash
brew tap avelino/jbundle
brew install jbundle
```

Works on macOS (Intel and Apple Silicon) and Linux via Linuxbrew.

## Pre-compiled Binaries

Download from [GitHub Releases](https://github.com/avelino/jbundle/releases):

| Platform        | Binary                          |
| --------------- | ------------------------------- |
| Linux x86\_64   | `jbundle-linux-x86_64.tar.gz`   |
| Linux ARM64     | `jbundle-linux-aarch64.tar.gz`  |
| macOS x86\_64   | `jbundle-darwin-x86_64.tar.gz`  |
| macOS ARM64     | `jbundle-darwin-aarch64.tar.gz` |
| Windows x86\_64 | `jbundle-windows-x86_64.zip`    |

```bash
# Example: manual install on Linux x86_64
curl -sSL https://github.com/avelino/jbundle/releases/latest/download/jbundle-linux-x86_64.tar.gz | tar xz
sudo mv jbundle /usr/local/bin/
```

```powershell
# Example: manual install on Windows
Invoke-WebRequest https://github.com/avelino/jbundle/releases/latest/download/jbundle-windows-x86_64.zip -OutFile jbundle.zip
Expand-Archive jbundle.zip -DestinationPath .
Move-Item jbundle.exe C:\Windows\
```

## From Source

Build from source using Cargo (Rust's package manager).

### Prerequisites

* [Rust toolchain](https://rustup.rs/) (1.70+)
* Git
* SSL development libraries
  * Debian/Ubuntu: `sudo apt update && sudo apt install libssl-dev`

### Steps

```bash
git clone https://github.com/avelino/jbundle.git
cd jbundle
cargo install --path .
```

## Verify Installation

```bash
jbundle --version
```

## Requirements

jbundle itself has no runtime dependencies. However, to **build** applications, you need the appropriate build tools:

| Build System | Required Tool                                             |
| ------------ | --------------------------------------------------------- |
| deps.edn     | [Clojure CLI](https://clojure.org/guides/install_clojure) |
| project.clj  | [Leiningen](https://leiningen.org/)                       |
| pom.xml      | [Maven](https://maven.apache.org/)                        |
| build.gradle | [Gradle](https://gradle.org/)                             |

The **output binary** has no dependencies — it includes everything needed to run.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jbundle.avelino.run/getting-started/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
