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
- Host: GitHub
- URL: https://github.com/opentmi/opentmi-cli
- Owner: OpenTMI
- License: mit
- Created: 2018-02-11T13:28:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-12T00:19:26.000Z (over 2 years ago)
- Last Synced: 2025-01-08T11:41:27.417Z (4 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://[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 serverOptions:
--version Show version number [boolean]
-h, --help Show help [boolean]copyright 2018
```