oppi-cmd

0.0.4 • Public • Published

OPPI-cmd

A command line tool written in node.js to access octoppi user's apis.

Installation

npm install -g oppi-cmd

On the first use it will prompt for username and email. A config file is saved to $HOME/.oppi-config.json

Usage

Add a contacts api endpoint with -c

oppi -c [name] [url to api]
oppi -c arne api.arnejenssen.com

List contacts with -L

oppi -L
your contacts [ { name: 'jasper', url: 'api.jasperwoudenberg.com' },
  { name: 'arne', url: 'api.arnejenssen.com' },
  { name: 'local', url: 'http://localhost:9001' },
  { name: 'lh', url: 'localhost:9001' } ]

Send message to contact with -m

oppi -t arne -m 'This is a message to the /text path'

Send file to contact with -f

oppi -t arne -f image.jpg

Not working yet

Readme

Keywords

Package Sidebar

Install

npm i oppi-cmd

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • arnejenssen