Skip to content

Commit c1f1655

Browse files
committed
docs: update installation instructions
1 parent 36fe5f5 commit c1f1655

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,32 @@ with various Charge Point Management Systems or Charge Point implementations.
2626

2727
## Installation
2828

29-
You can install ChargeFlow by downloading the binary.
29+
### Binary
30+
31+
Download the latest release for your platform from the [releases page](https://github.com/chargepi/chargeflow/releases/latest).
32+
33+
**Linux / macOS**
34+
35+
```bash
36+
# Set your platform (linux or darwin) and architecture (amd64 or arm64)
37+
OS=linux
38+
ARCH=amd64
39+
40+
VERSION=$(curl -s https://api.github.com/repos/chargepi/chargeflow/releases/latest | grep '"tag_name"' | cut -d'"' -f4)
41+
curl -L "https://github.com/chargepi/chargeflow/releases/download/${VERSION}/chargeflow_${VERSION#v}_${OS}_${ARCH}.tar.gz" | tar -xz chargeflow
42+
sudo mv chargeflow /usr/local/bin/
43+
```
44+
45+
### Docker
3046

3147
```bash
48+
docker pull ghcr.io/chargepi/chargeflow:latest
49+
```
3250

51+
Run a command with Docker:
52+
53+
```bash
54+
docker run --rm ghcr.io/chargepi/chargeflow:latest validate '[2, "123456", "BootNotification", {"chargePointVendor": "TestVendor", "chargePointModel": "TestModel"}]'
3355
```
3456

3557
## Usage

0 commit comments

Comments
 (0)