https://github.com/syncano/syncano-cli-plugin-hello
Example of simple Syncano CLI plugin
https://github.com/syncano/syncano-cli-plugin-hello
Last synced: 11 months ago
JSON representation
Example of simple Syncano CLI plugin
- Host: GitHub
- URL: https://github.com/syncano/syncano-cli-plugin-hello
- Owner: Syncano
- License: mit
- Created: 2017-01-15T17:31:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-15T18:47:26.000Z (over 9 years ago)
- Last Synced: 2025-03-08T18:51:13.240Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Syncano CLI plugin example
# Instalation
From the root folder of plugin type":
```sh
% npm install -g
```
# Adding plugin to your project
Plugins has to be configured in you project config file `syncano.yml`, e.g:
```yaml
plugins:
hello: syncano-cli-plugin-hello
```
# Usage
Type:
```sh
% syncano-cli
```
You should see plugin in plugins section:
```sh
Usage: cli [options] [command]
Current Instance: cold-pond-6063
Commands:
init [options] Start a Syncano project in the current directory.
socket Manage sockets. Search and install from the Syncano Sockets Registry
hosting Manage your static web assets and host them on Syncano
sync Synchronize your local configuration with the connected Instance
login Login
logout Logout from your current Instance
help [cmd] display help for [cmd]
Plugins:
hello hello
Options:
-h, --help output usage information
```
To use it type:
```sh
% syncano-cli hello
hello world!
```