onesky-cli
Version:
One Sky cli tool
120 lines (85 loc) • 1.99 kB
Markdown
> [One Sky App](https://www.oneskyapp.com/) cli tool, wrapper of [onesky-utils](https://www.npmjs.com/package/onesky-utils).
You need to run the CLI as NPM script or with "yarn-run" (eg. `yarn onesky-cli download -c config.file.json`)
```
$ yarn add onesky-cli
```
```
$ yarn add global onesky-cli
```
Run the `--help` command to get the list of commands.
```
$ onesky-cli --help
Usage
$ onesky-cli [input] - download|upload
Options
--config -c - Path to config file [Default: ./package.json]
Examples
$ onesky-cli download
$ onesky-cli upload --config oneSky.config.json
```
You can pass the configuration file path as param:
```
$ onesky-cli download -c oneSky.config.json
```
```json
{
...
"scripts": {
...
}
...
"oneSkyCli": {
{
"path": "fixture/i18n",
"apiKey": "apiKey",
"secret": "secretKey",
"projectId": "1111"
}
}
}
```
For `download` command:
```js
{
path: 'i18n',
languages: ['it', 'en'],
fileName: 'en.json'
}
```
For `upload` command:
```js
{
path: 'i18n',
format: 'HIERARCHICAL_JSON',
keepStrings: false,
languages: ['it', 'en']
}
```
<!--
```js
const oneskyCli = require('onesky-cli');
oneskyCli('unicorns');
//=> 'unicorns & rainbows'
```
Type: `string`
Lorem ipsum.
Type: `boolean`<br>
Default: `false`
Lorem ipsum.
Released under the [Apache 2.0](https://github.com/contactlab/onesky-cli/blob/master/LICENSE) license.