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