Ğcli

Ğcli is a command line interface with Duniter-v2s.

Some other tools like subkey can be useful and are not yet integrated into gcli.

Configure

Ğcli accepts arguments like --url to tell the node you want to connect to, but you might want to save it in a config file with gcli config:

# shows current gcli config
> gcli config show
Ğcli config
duniter endpoint ws://localhost:9944
indexer endpoint http://localhost:8080/v1/graphql
address (no address) (no secret)

# save new config and shows it
> gcli --network gdev --secret "bottom drive obey lake curtain smoke basket hold race lonely fit walk//Alice" config save
> gcli config show
Ğcli config
duniter endpoint wss://gdev.p2p.legal:443/ws
indexer endpoint https://gdev-indexer.p2p.legal/v1/graphql
address 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY (secret defined)

# you can also edit directly the config file with
> nano `gcli config where`

Please note that gcli stores the secret as plain text (not secured).

Use

TODO document usage

> gcli help
define command line arguments

Usage: gcli [OPTIONS] <COMMAND>

Commands:
  account     Account (balance, transfer...)
  identity    Identity (get, create, confirm, revoke...)
  smith       Smith (certify, go-online, go-offline...)
  tech        Tech (list members, proposals, vote...)
  ud          Universal Dividend (claim...)
  oneshot     Oneshot account (balance, create, consume...)
  blockchain  Blockchain (current block, runtime info...)
  indexer     Indexer (check, latest block)
  config      Config (show, save...)
  help        Print this message or the help of the given subcommand(s)

Options:
  -i, --indexer <INDEXER>              Overwrite indexer endpoint
      --no-indexer                     Do not use indexer
  -s, --secret <SECRET>                Secret key or BIP39 mnemonic (eventually followed by derivation path)
  -S, --secret-format <SECRET_FORMAT>  Secret key format (seed, substrate) [default: substrate]
  -a, --address <ADDRESS>              Address
  -u, --url <URL>                      Overwrite duniter websocket RPC endpoint
  -n, --network <NETWORK>              Target network (local, gdev, gtest...)
      --no-wait                        prevent waiting for extrinsic completion
  -h, --help                           Print help
  -V, --version                        Print version