testnet-laconicd-stack/scripts/README.md

37 lines
695 B
Markdown
Raw Normal View History

# cli
## Prerequisites
- NodeJS >= `v18.17.x`
## Instructions
2024-08-14 15:04:59 +00:00
- Change to scripts dir:
```bash
cd scripts
```
- Install dependencies and build:
```bash
2024-08-14 12:02:12 +00:00
yarn && yarn build
```
- Create required env configuration:
```bash
# Update the values as required
2024-08-14 12:50:50 +00:00
# By default, live laconicd testnet (laconicd.laconic.com) endpoint is configured
cp .env.example .env
```
- Map subscribers to onboarded participants:
```bash
yarn map-subscribers-to-participants --subscribers-csv <subscribers-csv-file> --output <output-csv-file>
# Example:
2024-08-14 15:18:40 +00:00
# yarn map-subscribers-to-participants --subscribers-csv subscribers.csv --output result-$(date +"%Y-%m-%d%Y%m%d").csv
```