anbaric 1.8.1 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -8
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -105,7 +105,7 @@ factories, so the same application runs in several ways without code changes.
105
105
  in-memory and jobs progress automatically. Running the program with
106
106
  `npx tsx src/main.ts` is a complete local run, suitable for development and
107
107
  testing.
108
- - **Anbaric Cloud.** `anbaric deploy` packages the application (source only, no
108
+ - **Anbaric Cloud.** `anbaric app deploy` packages the application (source only, no
109
109
  `node_modules`) and runs it on the hosted platform. The platform installs the
110
110
  application's own dependencies as it builds the image, so any npm package the
111
111
  application imports works when deployed. The platform injects the configuration
@@ -168,15 +168,22 @@ principal commands are:
168
168
  | Command | Purpose |
169
169
  | --- | --- |
170
170
  | `anbaric login` / `anbaric logout` | authorize this terminal against a platform, or revoke it |
171
- | `anbaric configure [dir]` | set an application's name and internal port |
172
- | `anbaric deploy [dir]` | deploy an application and wait until it is live |
173
- | `anbaric update [dir]` | deploy over a running application without prompting |
174
171
  | `anbaric apps` | list deployed applications |
172
+ | `anbaric app configure` | set an application's name and internal port |
173
+ | `anbaric app deploy` | deploy an application and wait until it is live |
174
+ | `anbaric app update` | deploy over a running application without prompting |
175
+ | `anbaric app status <name>` | show an application's deploy state and whether it is up |
176
+ | `anbaric app tail <name>` | stream an application's runtime logs |
177
+ | `anbaric app tear-down <name>` | stop and remove a deployed application |
175
178
  | `anbaric state-machines` | list registered state machines |
176
- | `anbaric job list [state-machine-id]` | list jobs |
177
- | `anbaric job watch <job-id>` | follow a job's state as it changes |
178
- | `anbaric job set-state <job-id> <state>` | move a job to a state and re-queue it |
179
- | `anbaric job update <job-id> <key=value ...>` | change job properties and re-queue |
179
+ | `anbaric jobs list [state-machine-id]` | list jobs |
180
+ | `anbaric jobs watch <job-id>` | follow a job's state as it changes |
181
+ | `anbaric jobs set-state <job-id> <state>` | move a job to a state and re-queue it |
182
+ | `anbaric jobs update <job-id> <key=value ...>` | change job properties and re-queue |
183
+
184
+ The `app configure`/`deploy`/`update` commands act on the application for the
185
+ current project, located by walking up to the nearest `package.json`, so they
186
+ run from anywhere inside it.
180
187
 
181
188
  Every command accepts flags (such as `--environment`, `--tenant`, `--name`,
182
189
  `--port`, `--yes`) that supply the answers a prompt would otherwise ask for, so
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anbaric",
3
- "version": "1.8.1",
3
+ "version": "1.9.0",
4
4
  "description": "Everything needed to write an Anbaric app: state machines, jobs, document and secret stores, local in-memory implementations and the Anbaric Cloud clients",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -10,9 +10,9 @@
10
10
  "src"
11
11
  ],
12
12
  "dependencies": {
13
- "anbaric-impl-cloud": "^1.8.1",
14
- "anbaric-data-store": "^1.8.1",
15
- "anbaric-state-machine": "^1.8.1",
16
- "anbaric-tsapi": "^1.8.1"
13
+ "anbaric-impl-cloud": "^1.9.0",
14
+ "anbaric-data-store": "^1.9.0",
15
+ "anbaric-state-machine": "^1.9.0",
16
+ "anbaric-tsapi": "^1.9.0"
17
17
  }
18
18
  }