strdctest v1.1.12
stratifyd_dc_command_line
Table of Contents
Install
$ npm install -g stratifyd_dc_command_line
Introduction
This is a command-line tool to help you connect your data locally and submit them to the stratifyd platform. You need to put your apikey.json and config.json in the default folders or point out the dir in the tool to finish the upload.
Type strdc in yout terminal to run this tool.
Here is the command list:
-h, --help output usage information
-r, --region <region> Select the region from EN, CN or Beta
-a, --apikeyfilepath <apikeyfilepath> Point the target path to find the apikey.json
-c, --configfilepath <configfilepath> Point the target path to find the config.json
-s, --start Start submitting the data with the jobconfig and apikeyfilepath
-g, --check Check the default param settings for the tool
By default, the value of region is CN, this tool will try to find the apikey.json and config.json in the current directory.
Examples
Example:
If your apikey.json and config.json are in the dir of 'youruser/Documents/configFIle/' so you could do:
cd youruser/Documents/configFIle/
strdc -s
Then the tool will find the database based the information in config.json and upload the data to stratifyd platform, CN server, to the account based the information in apikey.json.
you could also enter the file path by yourself.
Example:
If you are in the dir Documents/configFile/yourposition, and the config.json and apikey.json are in the Documents/configFile. And you want to change the region from cn to en. so you could do:
strdc -r EN -c ../configFile/config.json -a ../configFile/apikey.json -s
Then the tool will go to the target dir to find those files and upload them to the stratifyd platform, en server.
If any error happen during the process, you could see the error message through your command line. When you see the upload finish, then it means the upload has been done and you could kill the process after this.
7 years ago