Some checks are pending
offline / test (push) Waiting to run
Persist account-balance books; edge caches prepaid from books. Add zappier-identity, verae-nats-accounts, verae-jobs-events, verae-access-staff, zapier-decisions. Edge binds loopback; lan-134 stays off; HTTP services prefer local spawn.
62 lines
2.3 KiB
Markdown
62 lines
2.3 KiB
Markdown
# `verae-fleet/cli`
|
||
|
||
**Package:** `verae-fleet`
|
||
**Source:** `packages/verae-fleet/src/cli.js`
|
||
**Lines:** 146
|
||
|
||
## What this module is
|
||
|
||
Implementation module in `verae-fleet`. The tables below are extracted from the source (signatures + JSDoc).
|
||
|
||
## Exports
|
||
|
||
_No named `export` / `module.exports` keys detected._
|
||
|
||
## Types / interfaces / classes
|
||
|
||
_None extracted._
|
||
|
||
## Functions
|
||
|
||
| Name | Parameters | Param types (JSDoc) | Returns | Calls (same file / helpers) |
|
||
|------|------------|---------------------|---------|-----------------------------|
|
||
| `print` | `obj` | — | `unknown` | see Call graph |
|
||
| `help` | `(none)` | — | `unknown` | see Call graph |
|
||
| `api` | `method, pathname` | — | `unknown` | see Call graph |
|
||
| `main` | `(none)` | — | `unknown` | see Call graph |
|
||
|
||
## Methods (class / object)
|
||
|
||
| Name | Parameters |
|
||
|------|------------|
|
||
| `print` | ``verae-fleet
|
||
|
||
list services, config files, replica min/max
|
||
serve start floors + monitor + UI ${BASE}/
|
||
monitor same without printing extra
|
||
status GET daemon status
|
||
start <service> turn on, spawn up to min
|
||
stop <service|instance> turn off (service disable` |
|
||
| `print` | `r.body` |
|
||
| `print` | `{ error: err.message, hint: 'Is `verae-fleet serve` running?' }` |
|
||
|
||
## What it imports / requires
|
||
|
||
- `node:http`
|
||
- `./load.js`
|
||
- `./supervisor.js`
|
||
- `./monitor.js`
|
||
- `./server.js`
|
||
|
||
## Call graph (identifiers invoked)
|
||
|
||
`loadFleet`, `slice`, `print`, `write`, `stringify`, `help`, `off`, `pause`, `json`, `identityFile`, `login`, `api`, `request`, `on`, `push`, `concat`, `toString`, `resolve`, `parse`, `end`, `main`, `listServices`, `padEnd`, `padStart`, `import`, `find`, `sshCheck`, `startControlServer`, `keys`, `startService`, `tick`, `start`, `async`, `stop`, `stopAll`, `exit`, `test`
|
||
|
||
Each identifier is a call site in this file. Follow the import list to see the defining module; open that module’s MD for parameter and return types.
|
||
|
||
## Return values (how to read this)
|
||
|
||
- HTTP route handlers return Express `res.json(...)` bodies (see route docs).
|
||
- Zapier `perform` functions return a **single object** (creates) or an **array** (triggers/searches).
|
||
- Pricing functions return integer **cents** on `Quote.totalCents`.
|
||
|