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