# cloudgarage

> [CloudGarage - クラウドガレージ | 定額型パブリッククラウド](https://cloudgarage.jp/)

Latest version **0.0.2** (published 2018-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install cloudgarage
pnpm add cloudgarage
yarn add cloudgarage
bun add cloudgarage
```

Provides the command `cloudgarage`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-12-17 |
| First published | 2018-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Atsushi Nakatsugawa |
| Maintainers | moongift |

## Links

- npm: https://www.npmjs.com/package/cloudgarage
- Repository: https://github.com/CloudGarageMania/node-js
- Homepage: https://github.com/CloudGarageMania/node-js#readme
- Issues: https://github.com/CloudGarageMania/node-js/issues
- npm.io page: https://npm.io/package/cloudgarage

## Dependencies (3)

- [prompts](https://npm.io/package/prompts.md) ^2.0.0
- [commander](https://npm.io/package/commander.md) ^2.19.0
- [superagent](https://npm.io/package/superagent.md) ^4.0.0

## Recent versions

- 0.0.2 (latest) — 2018-12-17
- 0.0.1 — 2018-12-17

## README

# CloudGarage Node.js SDK & CLI Client

[CloudGarage - クラウドガレージ | 定額型パブリッククラウド](https://cloudgarage.jp/)

CloudGarageは定額制のIaaSです。

## インストール

```
$ npm i cloudgarage -g
```

## 使い方

### トークンの取得

あらかじめ[コントロールパネル | CloudGarage](https://console.cloudgarage.jp/server/list#!/)にてAPIのクライアントIDとクライアントシークレットを取得しておきます。

```
$ cloudgarage token
```

クライアントIDとクライアントシークレットを入力すると設定ファイルを出力します（デフォルトは ~/.cloudgarage.json）。

```
$ cloudgarage help token
Usage: cloudgarage-token [options]

Options:
  -i, --id [clientId]            This is Client Id that you can get it on Dashboard at CloudGarage
  -s, --secret [clientSecret]    This is Client Secret that you can get it on Dashboard at CloudGarage
  -o, --output [configFilePath]  Output config file path. Default is ~/.cloudgarage.json (default: "~/.cloudgarage.json")
  -h, --help                     output usage information
```

### ディスクイメージの取得

トークンファイルを生成後、実行します。

```
$ cloudgarage images
```

作成されているバックアップイメージを含め、ディスクイメージが一覧で返ってきます。

```
$ node_modules/.bin/cloudgarage images
┌─────────┬────────────────────────────────────────┬───────────────┬──────────────────────────────────┐
│ (index) │                   Id                   │     Type      │               Name               │
├─────────┼────────────────────────────────────────┼───────────────┼──────────────────────────────────┤
│    0    │ '38b60dd1-e374-44ef-b58e-9beaeabf0eaa' │     'OS'      │       'CentOS-6.10-32bit'        │
│    1    │ 'b1e41e1c-1410-4880-aa33-9c83154d3571' │     'OS'      │       'CentOS-6.10-64bit'        │
│   26    │ '38625780-5355-4da5-918f-2bd12abef9b7' │ 'APPLICATION' │   'Redmine/Ubuntu-16.04-64bit'   │
│   27    │ '7761c7de-47a6-47a9-83de-3e6bf57f71b1' │ 'APPLICATION' │  'WordPress/Ubuntu-16.04-64bit'  │
└─────────┴────────────────────────────────────────┴───────────────┴──────────────────────────────────┘
```

`-t` または `--type` でディスク種別をフィルタリングできます。指定できるのは OS / APPLICATION / PRIVATEの3つです。

```
$ cloudgarage help images
Usage: cloudgarage-images [options]

Options:
  -c, --config [configFilePath]  Config file path. Default is ~/.cloudgarage.json (default: "~/.cloudgarage.json")
  -t, --type [type]              Filtering image type. [OS, APPLICATION, PRIVATE]
  -h, --help                     output usage information
```

## License

MIT.

---
_Source: https://npm.io/package/cloudgarage · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
