# Install & Upgrade

# 1. Programs to Install

Install these programs.

If you are having trouble installing pnpm you can run this command in a Powershell Window with Admin Enabled.

set-executionpolicy unrestricted

These are optional but recommended if developing


# 2. Clone the Repository

Open a terminal and clone the repository somewhere.

git clone https://github.com/Stuyk/rebar-altv/

# Navigate into Rebar

cd rebar-altv

# 3a. Windows

# Install

pnpm install

# Download Binaries

pnpm binaries

# Start

pnpm start

Alternatively, development mode can be started with

pnpm dev

# 3b. Linux

Last installation was tested on Ubuntu 22.04+

# Install libatomic

sudo apt-get update
sudo apt-get install libatomic1

# Install

pnpm install

# Download Binaries

pnpm binaries

# Start

pnpm start:linux

Alternatively, development mode can be started with

pnpm dev:linux

# 3c. Docker

Follow all of the instructions above.

Build with pnpm build:docker and then run ./altv-server.

# Upgrading

# Auto Upgrade

If you already have Rebar installed simply run the following command:

pnpm rebar:upgrade

# Manual Upgrade

Download the latest version Rebar into another folder.

Copy the folders src/main, webview, and docs folder into the main folder of Rebar.

Copy the file package.json to the main folder of Rebar.

Run pnpm upgrade and pnpm install.

Click To Download Latest Source Code

That's it.

# Webview Development

If you need to develop an interface out of game, you can use pnpm:webview