@marina-cloud/cli 0.0.3 → 0.0.5
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.
- package/README.md +37 -7
- package/dist/marina.mjs +2822 -451
- package/package.json +10 -6
package/README.md
CHANGED
|
@@ -11,9 +11,15 @@ marina setup
|
|
|
11
11
|
marina deploy
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
For a complete first run, including the deployment skill and demo app:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npm install -g @marina-cloud/cli && marina setup --skills --deploy-demo --json
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
`marina setup` opens Marina in the browser and delivers the resulting API key
|
|
21
|
+
directly back to the CLI. For unattended environments, `MARINA_TOKEN` is the
|
|
22
|
+
process-only credential override.
|
|
17
23
|
|
|
18
24
|
The saved credential lives in `~/.marina/profile` with user-only permissions.
|
|
19
25
|
Use `marina profile` to inspect the active profile and `marina logout` to remove
|
|
@@ -26,8 +32,9 @@ marina skills install
|
|
|
26
32
|
marina skills install --agent codex
|
|
27
33
|
```
|
|
28
34
|
|
|
29
|
-
The CLI
|
|
30
|
-
when a newer release is available.
|
|
35
|
+
The CLI reads release metadata from Marina's control plane and prints an
|
|
36
|
+
advisory update command at most once per day when a newer release is available.
|
|
37
|
+
It never updates itself.
|
|
31
38
|
|
|
32
39
|
## Agent-friendly output
|
|
33
40
|
|
|
@@ -37,6 +44,7 @@ JSON result; progress stays on standard error.
|
|
|
37
44
|
```sh
|
|
38
45
|
marina list --json
|
|
39
46
|
marina status --app my-tool --json
|
|
47
|
+
marina logs --app my-tool
|
|
40
48
|
marina deploy --json
|
|
41
49
|
```
|
|
42
50
|
|
|
@@ -44,6 +52,13 @@ Successful results have `schema_version: 1` and `ok: true`. Failures have
|
|
|
44
52
|
`ok: false` and a stable `error.code`; exit codes distinguish errors,
|
|
45
53
|
authentication failures, and deployment refusals.
|
|
46
54
|
|
|
55
|
+
`marina logs` always returns one structured JSON document, even without
|
|
56
|
+
`--json`; log bodies are never rendered as terminal text. It includes recent
|
|
57
|
+
deployment events, runtime invocations, console output, and exceptions. Use
|
|
58
|
+
`--level`, `--limit`, and `next_cursor` to filter or continue through older
|
|
59
|
+
entries. Build-log bodies are likewise omitted from human deploy output and
|
|
60
|
+
remain available in `deploy --json` and `deploys --json` results.
|
|
61
|
+
|
|
47
62
|
## Deploy a first demo
|
|
48
63
|
|
|
49
64
|
`marina deploy demo --json` deploys the bundled, interactive Hello Marina
|
|
@@ -59,11 +74,26 @@ Add `marina.json` at the project root to give the app a portable name and icon:
|
|
|
59
74
|
{
|
|
60
75
|
"schema": 1,
|
|
61
76
|
"name": "My App",
|
|
62
|
-
"icon": "⛵"
|
|
63
|
-
"type": "static"
|
|
77
|
+
"icon": "⛵"
|
|
64
78
|
}
|
|
65
79
|
```
|
|
66
80
|
|
|
67
81
|
For names, the CLI uses `--name`, then `marina.json`, then `package.json`, then
|
|
68
82
|
the directory name. `.marina/project.json` only links the directory to an app
|
|
69
83
|
after its first deploy; do not commit it.
|
|
84
|
+
|
|
85
|
+
Run `marina deploy .` from a project root by default. A non-empty
|
|
86
|
+
`package.json` `scripts.build` makes Marina install dependencies, run
|
|
87
|
+
`npm run build`, and publish the generated output—even when the source project
|
|
88
|
+
also has root `index.html`. A package without a build script can still deploy
|
|
89
|
+
as-is when root `index.html` exists. Build output must contain `index.html` in
|
|
90
|
+
`dist`, `build`, `out`, `public`, or `.output/public`.
|
|
91
|
+
|
|
92
|
+
Deploy source, not build output. `marina deploy dist` is refused with exit
|
|
93
|
+
code 3 when the target is the build output of a project that declares a build;
|
|
94
|
+
deploy the project root instead, and Marina runs the build itself. The server
|
|
95
|
+
likewise refuses uploads that are recognizably build output.
|
|
96
|
+
|
|
97
|
+
When a declared build fails, Marina can ask its publishing agent to retry or
|
|
98
|
+
minimally repair the build; there is no path that publishes existing output
|
|
99
|
+
instead of building.
|