omnigraph/docs/user/install.md

152 lines
3.4 KiB
Markdown
Raw Permalink Normal View History

2026-04-10 20:49:41 +03:00
# Install
## Quick Install
macOS / Linux:
2026-04-10 20:49:41 +03:00
```bash
2026-04-11 02:19:21 +03:00
curl -fsSL https://raw.githubusercontent.com/ModernRelay/omnigraph/main/scripts/install.sh | bash
2026-04-10 20:49:41 +03:00
```
Windows PowerShell:
```powershell
powershell -NoProfile -ExecutionPolicy Bypass -Command "iwr -UseBasicParsing https://raw.githubusercontent.com/ModernRelay/omnigraph/main/scripts/install.ps1 | iex"
```
2026-04-10 20:49:41 +03:00
By default the installer places:
- `omnigraph`
- `omnigraph-server`
in `~/.local/bin` on macOS / Linux, or:
- `omnigraph.exe`
- `omnigraph-server.exe`
in `%USERPROFILE%\.local\bin` on Windows.
2026-04-10 20:49:41 +03:00
2026-04-10 23:26:09 +03:00
The default installer is binary-only. It downloads a published release asset,
verifies the SHA256 checksum, and unpacks it. It does not build from source.
2026-04-11 02:19:21 +03:00
If no stable tag is published yet, the installer automatically falls back to
the rolling `edge` release.
2026-04-10 23:26:09 +03:00
## Homebrew
```bash
brew tap ModernRelay/tap
brew install ModernRelay/tap/omnigraph
```
2026-04-10 23:26:09 +03:00
## Channels
Stable binaries:
```bash
2026-04-11 02:19:21 +03:00
curl -fsSL https://raw.githubusercontent.com/ModernRelay/omnigraph/main/scripts/install.sh | bash
2026-04-10 23:26:09 +03:00
```
Rolling edge binaries from `main`:
```bash
2026-04-11 02:19:21 +03:00
curl -fsSL https://raw.githubusercontent.com/ModernRelay/omnigraph/main/scripts/install.sh | RELEASE_CHANNEL=edge bash
2026-04-10 23:26:09 +03:00
```
Windows rolling edge binaries:
```powershell
iwr -UseBasicParsing https://raw.githubusercontent.com/ModernRelay/omnigraph/main/scripts/install.ps1 -OutFile install.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -ReleaseChannel edge
```
2026-04-10 23:26:09 +03:00
Install from source:
```bash
2026-04-11 02:19:21 +03:00
curl -fsSL https://raw.githubusercontent.com/ModernRelay/omnigraph/main/scripts/install-source.sh | bash
2026-04-10 23:26:09 +03:00
```
2026-04-10 20:49:41 +03:00
## Useful Overrides
Install to a different directory:
```bash
2026-04-11 02:19:21 +03:00
curl -fsSL https://raw.githubusercontent.com/ModernRelay/omnigraph/main/scripts/install.sh | INSTALL_DIR="$HOME/bin" bash
2026-04-10 20:49:41 +03:00
```
Windows:
```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -InstallDir "$env:USERPROFILE\bin"
```
2026-04-10 23:26:09 +03:00
Install a specific tag:
2026-04-10 20:49:41 +03:00
```bash
2026-04-11 02:19:21 +03:00
curl -fsSL https://raw.githubusercontent.com/ModernRelay/omnigraph/main/scripts/install.sh | VERSION=v0.1.0 bash
2026-04-10 20:49:41 +03:00
```
Windows:
```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -Version v0.1.0
```
2026-04-10 20:49:41 +03:00
Build from a specific git ref:
```bash
2026-04-11 02:19:21 +03:00
curl -fsSL https://raw.githubusercontent.com/ModernRelay/omnigraph/main/scripts/install-source.sh | SOURCE_REF=main bash
2026-04-10 20:49:41 +03:00
```
## Manual Source Build
macOS / Linux:
2026-04-10 20:49:41 +03:00
```bash
cargo build --release --locked -p omnigraph-cli -p omnigraph-server
install -m 0755 target/release/omnigraph ~/.local/bin/omnigraph
install -m 0755 target/release/omnigraph-server ~/.local/bin/omnigraph-server
```
Windows:
```powershell
cargo build --release --locked -p omnigraph-cli -p omnigraph-server
New-Item -ItemType Directory -Force "$env:USERPROFILE\.local\bin" | Out-Null
Copy-Item target\release\omnigraph.exe "$env:USERPROFILE\.local\bin\omnigraph.exe"
Copy-Item target\release\omnigraph-server.exe "$env:USERPROFILE\.local\bin\omnigraph-server.exe"
```
2026-04-10 20:49:41 +03:00
## Release Assets
Tagged releases are expected to publish:
- `omnigraph-linux-x86_64.tar.gz`
- `omnigraph-macos-arm64.tar.gz`
- `omnigraph-windows-x86_64.zip`
2026-04-10 20:49:41 +03:00
The macOS / Linux archives contain both binaries:
2026-04-10 20:49:41 +03:00
- `omnigraph`
- `omnigraph-server`
The Windows archive contains:
- `omnigraph.exe`
- `omnigraph-server.exe`
2026-04-10 20:49:41 +03:00
## Verify The Install
macOS / Linux:
2026-04-10 20:49:41 +03:00
```bash
omnigraph version
omnigraph-server --help
```
Windows:
```powershell
omnigraph.exe version
omnigraph-server.exe --help
```