https://github.com/leopardslab/nodecloud-cli
📝 Command line interface for open cloud
https://github.com/leopardslab/nodecloud-cli
aws cli gcp hacktoberfest javascript
Last synced: 10 months ago
JSON representation
📝 Command line interface for open cloud
- Host: GitHub
- URL: https://github.com/leopardslab/nodecloud-cli
- Owner: leopardslab
- License: mit
- Created: 2018-01-07T11:42:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T05:11:39.000Z (over 3 years ago)
- Last Synced: 2023-03-04T00:18:49.728Z (over 3 years ago)
- Topics: aws, cli, gcp, hacktoberfest, javascript
- Language: JavaScript
- Homepage:
- Size: 411 KB
- Stars: 29
- Watchers: 4
- Forks: 32
- Open Issues: 52
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nodecloud-cli
nodecloud-cli is an unified command line interface for open cloud based on [nodecloud](https://github.com/cloudlibz/nodecloud). nodecloud-cli supports cloud providers like AWS, Azure, GCP and many more.
## 🚀 Install
Using npm
```
$ npm install -g nodecloud-cli
```
Using yarn
```
$ yarn global add nodecloud-cli
```
## 📣 Usage
Initialize cli with selected cloud provider
```
$ nc --init
```
**Compute** :computer:
Create virtual machine instance
```
$ nc --compute create --type aws --vm-name="aws-ec2"
```
List all available virtual machine instance
```
$ nc --compute list --type aws
```
Delete selected virtual machine instance
```
$ nc --compute delete --type aws --in-id="Instance_ID"
```
Turn on virtual machine instance
```
$ nc --compute start --type aws --in-id="Instance_ID"
```
Shut down virtual machine instance
```
$ nc --compute stop --type aws --in-id="Instance_ID"
```
Reboot virtual machine instance
```
$ nc --compute reboot --type aws --in-id="Instance_ID"
```
**Network** :satellite:
Creating load balancer
```
$ nc --network create --type="aws" --service="lb" --name="myelb" --port="80"
```
Deleting load balancer
```
$ nc --network delete --type="aws" --service="lb" --name="myelb"
```
List load balancer
```
$ nc --network list --type="aws" --service="lb"
```
Add tag to load balancer
```
$ nc --network tag --type="aws" --service="lb" --name="myelb" --key="Lv" --value="one"
```
Remove tag from load balancer
```
$ nc --network detag --type="aws" --service="lb" --name="myelb" --key="Lv"
```
**Storage** :floppy_disk:
Creating Storage bucket
```
$ nc --storage create --type aws --st-name="aws-ec2"
```
Deleting Storage bucket
```
$ nc --storage delete --type aws --st-name="Instance_ID"
```
List all Storage buckets
```
$ nc --storage list --type aws
```
Upload to Storage bucket
```
$ nc --storage upload --type aws --st-name="Instance_ID" --file="file_path"
```
**Identity Access Management** :key:
Creating Group
```
$ nc --iam create --type aws --gp-name="UserGroup01"
```
Deleting Group
```
$ nc --iam delete --type aws --gp-name="UserGroup01"
```
Attach Resource
```
$ nc --iam attach --type aws --gp-name`="UserGroup01"` --ar-name="resource01"
```
Detach Resource
```
$ nc --iam detach --type aws --gp-name`="UserGroup01"` --ar-name="resource01"
```
## 💻 Development setup
```
$ git clone https://github.com/cloudlibz/nodecloud-cli
$ cd nodecloud-cli
$ yarn install
```
## ✒️ Run unit tests
```
$ yarn test
```
## 📜 License
MIT