Skip to content

synthetix-cli

A set of cli utilities for the Synthetix protocol

Installation

Clone repo and install npm.

Usage

The interactive UI is the most useful:

npm start

cli

Use --help for more features (including a testnet, the OVM, or adding private key if you want to transact)

Other scripts

node src/commands/<a-command.js> --help

Linking with a local Synthetix repo

This allows the cli to use deployment.json files from a local sytnethix repo, i.e. allowing you to use the cli on non-official deployments.

1
2
3
4
5
$ cd synthetix
$ npm link
$ cd ..
$ cd synthetix-cli
$ npm link synthetix

Ethereum provider

By default, uses Ethers default Ethereum provider, but this provider is most likely saturated at any time. To specify your own infura provider, copy .env.example as .env and set PROVIDER_URL. Note that "network" will be replaced by the network a command is run in.