https://github.com/opentmi/opentmi-cli
Command line interface for opentmi
https://github.com/opentmi/opentmi-cli
opentmi opentmi-cli
Last synced: 8 days ago
JSON representation
Command line interface for opentmi
- Host: GitHub
- URL: https://github.com/opentmi/opentmi-cli
- Owner: OpenTMI
- License: mit
- Created: 2018-02-11T13:28:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-12T00:19:26.000Z (about 3 years ago)
- Last Synced: 2025-02-25T22:46:22.977Z (9 months ago)
- Topics: opentmi, opentmi-cli
- Language: JavaScript
- Size: 171 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opentmi-cli
Command line interface for OpenTMI
## Installation
```
npm i -g git+https://git@github.com/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
```