CLI for EscherAuth in Ruby
- presign url
- faraday-cli (Console line interface for faraday gem client so you can use your favorite middleware based ruby http client on the terminal!)
- Ruby
- Bundler gem
- Check out into
~/.escher-cli
.
$ git clone https://github.com/emartech/escher-cli.git ~/.escher-cli
- Install dependencies.
$ cd ~/.escher-cli
$ bundle install
- Add ~/.escher-cli/bin to your $PATH for access to the EscherAuth command-line utility.
$ echo 'export PATH="$HOME/.escher-cli/bin:$PATH"' >> ~/.bash_profile
- Ubuntu Desktop note: Modify your ~/.bashrc instead of ~/.bash_profile.
- Zsh note: Modify your ~/.zshrc file instead of ~/.bash_profile.
- Open
~/.escher-cli/conf/faraday.rb
in your favorite editor. - Setup your keypool. (see escher-keypool-ruby)
Sending complex POST request:
$ escher-cli faraday --verbose --header "<HEADER-NAME>:<value>" -X POST <URL> --data "<JSON_DATA>"
Sending GET request:
$ escher-cli faraday --verbose -X GET <URL>
- escher-keypool management
- ?authenticate?