> For the complete documentation index, see [llms.txt](https://docs.orbs.network/v2-contract-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.orbs.network/v2-contract-sdk/getting-started/installing-gamma.md).

# Installing Gamma - local blockchain

## Prerequisite

Gamma uses [Docker](https://www.docker.com/) to run a personal blockchain with multiple nodes locally. Make sure Docker is available on your machine.

### On MAC

See installation instructions [here](https://docs.docker.com/docker-for-mac/install/).

### On Linux

Install the community edition using the convenience script [here](https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-convenience-script).

## Installing Gamma Command Line Tool

Next, install the Gamma CLI. `gamma-cli` is the command line tool for developers to interact with a Gamma server instance running on their machine.

### On Mac

Use [brew](https://brew.sh/)

```
brew install orbs-network/devtools/gamma-cli
```

### On Linux

Run the gamma-cli install script in terminal:

```bash
https://raw.githubusercontent.com/orbs-network/gamma-cli/master/gammacli-linux-install-v0.7.0.sh | bash
```

### Verify

Verify the installation by running:

```
gamma-cli version
```

## Using Gamma CLI

You can see the various commands supported by the CLI by running in terminal

```
gamma-cli help
```

You can use the CLI to start and stop Gamma server, deploy contracts and send transactions.

## Installing the Gamma server

Gamma server is an in-memory virtual chain on top of an Orbs blockchain with several nodes on your local machine. The server allows you to test your contracts locally before deploying them to production.

If the server isn't installed yet, `gamma-cli` installs it automatically.

So far, we only installed the cli tool. Now, start the Gamma server by running the following command in the terminal. The CLI tool will notice the server is not installed and will install it for you:

```
gamma-cli start-local
```

If everything went well, you now have a running ORBS blockchain on your local machine. Yes, it's that simple! You can browse to <http://localhost:8080/> to view the status of your local ORBS instance.

The `start-local` comands also runs our block explorer, Prism. You can use Prism to get more info about your blockchain instance by browsing to <http://localhost:3000/>.

When finished with the server, stop it by running in terminal

```
gamma-cli stop-local
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.orbs.network/v2-contract-sdk/getting-started/installing-gamma.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
