Skip to content

fiatjaf/ecli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecli

An interactive, immersive, CLI for eclair.

It displays events that happen in your node, allows you to query all the API methods and do jq queries on them, and provides extra useful methods.

Install

Download a binary from Releases, or build with Go:

go get github.com/fiatjaf/ecli

Usage

Just run (if you have it in your $PATH)

ecli

It will get the Éclair API credentials from ~/.eclair/eclair.conf.

If you're trying to access a remote node (for example, from your home to a VPS that is hosting your node) you can create a dummy file there with only the API credentials:

eclair {
  node-alias = "myeclair"
  api {
    binding-ip = 10.148.18.18
    port = 8080
    password = "satoshi21"
  }
}

Roadmap

  • Basic API calls
  • jq on calls history ($last | . -- or just ., $history | map(.))
  • Pipe to jq: getinfo | .nodeId
  • openfullbalance command (like open, but uses all your balance instead)
  • Websocket events printed on console
  • Human-readable event formatting
  • Storeable jq flows and custom methods
  • More data-drilling functions besides jq
  • More extra methods (which ones?)
  • Initiating ecli with a call, like ecli

License

Public domain, except you can't use for shitcoins.