An open API service indexing awesome lists of open source software.

https://github.com/opentmi/opentmi-cli

Command line interface for opentmi
https://github.com/opentmi/opentmi-cli

opentmi opentmi-cli

Last synced: 3 months ago
JSON representation

Command line interface for opentmi

Awesome Lists containing this project

README

        

# opentmi-cli

Command line interface for OpenTMI

## Installation

```
npm i -g git+https://[email protected]/opentmi/opentmi-cli.git
```

## Usage

**Login:**
```
$ opentmi-cli login localhost:3000 user password
```
This will fetch authentication token from backend and store
it to `.opentmi` -file as well as host.

**Show backend version:**
```
$ opentmi-cli show version
...
```

**Update opentmi backend version:**
```
$ opentmi-cli update version v1.0.0
...
```

**Logout:**
```
$ opentmi-cli logout
```
This will clean token and host from `.opentmi` -file.

## Help

```
$ opentmi-cli -h
Usage: [options]

Commands:
login [username] [password] Authenticate user
logout Logout user
show Show something from server
update Update something from server

Options:
--version Show version number [boolean]
-h, --help Show help [boolean]

copyright 2018
```