2022-07-21 07:08:17 +02:00
|
|
|
---
|
2023-05-30 10:02:53 +02:00
|
|
|
title: Building/Installing Dendrite
|
|
|
|
parent: Manual
|
|
|
|
grand_parent: Installation
|
2022-07-21 07:08:17 +02:00
|
|
|
has_toc: true
|
2023-05-30 10:02:53 +02:00
|
|
|
nav_order: 1
|
|
|
|
permalink: /installation/manual/build
|
2022-07-21 07:08:17 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
# Build all Dendrite commands
|
|
|
|
|
|
|
|
Dendrite has numerous utility commands in addition to the actual server binaries.
|
2023-05-30 10:02:53 +02:00
|
|
|
Build them all from the root of the source repo with:
|
2022-07-21 07:08:17 +02:00
|
|
|
|
|
|
|
```sh
|
2023-05-30 10:02:53 +02:00
|
|
|
go build -o bin/ ./cmd/...
|
2022-07-21 07:08:17 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
The resulting binaries will be placed in the `bin` subfolder.
|
|
|
|
|
2023-05-30 10:02:53 +02:00
|
|
|
# Installing Dendrite
|
2022-07-21 07:08:17 +02:00
|
|
|
|
2023-05-30 10:02:53 +02:00
|
|
|
You can install the Dendrite binary into `$GOPATH/bin` by using `go install`:
|
2022-07-21 07:08:17 +02:00
|
|
|
|
|
|
|
```sh
|
2023-03-03 10:20:53 +01:00
|
|
|
go install ./cmd/dendrite
|
2022-07-21 07:08:17 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Alternatively, you can specify a custom path for the binary to be written to using `go build`:
|
|
|
|
|
|
|
|
```sh
|
2023-03-03 10:20:53 +01:00
|
|
|
go build -o /usr/local/bin/ ./cmd/dendrite
|
2022-07-21 07:08:17 +02:00
|
|
|
```
|