Skip to content

Commit

Permalink
feat: first version
Browse files Browse the repository at this point in the history
  • Loading branch information
darlanalves committed Mar 19, 2023
1 parent adb3bc4 commit cc8d7cb
Show file tree
Hide file tree
Showing 7 changed files with 7,775 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
dist/
coverage/
coverage/
cloud.service
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
jest*.mjs
tsconfig.json
coverage/
.github/
.github/
cloud.service
48 changes: 47 additions & 1 deletion README.md
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
```
Loading

0 comments on commit cc8d7cb

Please sign in to comment.