OPTiM Cloud IoT OS(CIOS) The command line interface (CLI) is an integrated tool for managing CIOS. This tool will be provided in binary and will help automation with scripts etc. that operate CIOS.
This repository depends on OPTiM Cloud IoT OS Golang SDK.
Use API as of 2021/03/10.
- v0.2.3
The configuration file is automatically generated by entering the following command. Information such as domain county and Access Token is temporarily stored in the configuration file.
$ cios
Created a directory [C:\Users\hogehoge/.cios-cli]
Created a file [C:\Users\hogehoge/.cios-cli/config.json]
Created a file [C:\Users\hogehoge/.cios-cli/URL.json]
Next '$ cios login'
By doing cios login
, you can log in with any OAuth Client
.
Create OAuthClient information according to the following.
- Type:
Web
- Redirect URI:
http://localhost:8080/oauth2/callback
$ cios login
? Choose a stage: [Use arrows to move, enter to select, type to filter]
> Preview
Production
? Redirect URI: http://localhost:8080/oauth2/callback
? Client ID: hohohooho-gege-hoho-gegehogehogehoge
? Client Secret ****************************************************************
...
finish
The CIOS CLI Document describes how to use the API.
By saving the setting information as a file, any data can be recalled later.
For example, it is effective when using two environments, Prod
and Pre
.
$ cios config save
? Name: Develop
Success to save config
You can change the destination environment by entering the following command.
cios url edit
- Option
-i
: The entered domain will be set. - Option
-ia
: Write all URLs. - Option none : The settings folder opens.
Please see DEVELOP.md
If you have any issues or questions, please raise them on Github issues.
Copyright (c) 2021 OPTiM Corporation https://www.optim.co.jp/