generated from cloud-cli/ts-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
adb3bc4
commit cc8d7cb
Showing
7 changed files
with
7,775 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules/ | ||
dist/ | ||
coverage/ | ||
coverage/ | ||
cloud.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
jest*.mjs | ||
tsconfig.json | ||
coverage/ | ||
.github/ | ||
.github/ | ||
cloud.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,47 @@ | ||
# ts-template | ||
# System management commands | ||
|
||
``` | ||
npm i @cloud-cli/sys | ||
``` | ||
|
||
## Bootstrap the CLI server | ||
|
||
``` | ||
npm i @cloud-cli/sys @cloud-cli/cli | ||
alias cy="./node_modules/.bin/cy" | ||
cy --serve& | ||
cy createService | ||
fg | ||
# Ctrl+C to stop the server | ||
ln -s $PWD/cloud.service /etc/systemd/system/cloud.service | ||
systemctl daemon-reload | ||
systemctl enable cloud | ||
systemct restart cloud | ||
``` | ||
|
||
## Usage | ||
|
||
**Restart the CLI server:** | ||
|
||
``` | ||
cy sys.restart | ||
``` | ||
|
||
**Install a new module:** | ||
|
||
``` | ||
cy sys.install -m foo | ||
``` | ||
|
||
**Update server modules or a single module:** | ||
|
||
``` | ||
cy sys.update | ||
cy sys.update -m foo | ||
``` | ||
|
||
**Create a systemd unit to run the CLI server:** | ||
|
||
``` | ||
cy sys.createService | ||
``` |
Oops, something went wrong.