@apotech-os/cli 0.4.0 → 0.5.0-rc.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apotech-os/cli",
3
- "version": "0.4.0",
3
+ "version": "0.5.0-rc.1",
4
4
  "description": "Wopilo OS CLI — dev/plan/apply your app manifest",
5
5
  "bin": {
6
6
  "apotech-os": "./dist/index.js"
@@ -24,7 +24,7 @@
24
24
  "commander": "^14.0.3",
25
25
  "esbuild": "^0.28.1",
26
26
  "semver": "^7.8.5",
27
- "@apotech-os/app-kit": "0.3.0"
27
+ "@apotech-os/app-kit": "0.5.0-rc.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^24.0.0",
package/README.md DELETED
@@ -1,49 +0,0 @@
1
- # @apotech-os/cli
2
-
3
- CLI for Wopilo OS apps: scaffold locally, plan/apply your manifest against a
4
- server, and publish releases.
5
-
6
- ```sh
7
- npm install -g @apotech-os/cli
8
- ```
9
-
10
- ## Remotes and login
11
-
12
- ```sh
13
- apotech-os remote add --url https://your-server.example.com --as production
14
- apotech-os login --remote production
15
- ```
16
-
17
- `login` starts a browser-based approval (device-code flow): the CLI prints a
18
- confirmation code and opens the web app, a platform admin checks that the code
19
- matches and clicks **Autoriser**, and the CLI receives an API key and stores it
20
- in `~/.wopilo/credentials.json` (mode `0600`).
21
-
22
- The key is an ordinary platform API key, labelled with the requesting machine
23
- and revocable at any time under _Paramètres › Clés API_.
24
-
25
- On a headless machine you can open the printed URL from another device, or skip
26
- the browser entirely and paste a key you created by hand:
27
-
28
- ```sh
29
- apotech-os login --remote production --with-key
30
- ```
31
-
32
- Environment variables work too, and take no `--remote`:
33
-
34
- - `WOPILO_API_URL` — server API root. No `/api` prefix is added automatically.
35
- - `WOPILO_API_KEY` — Bearer token.
36
-
37
- ## Commands
38
-
39
- | Command | What it does |
40
- | ----------------------------------------------- | ------------------------------------------ |
41
- | `apotech-os dev` | Watch and rebuild the app manifest locally |
42
- | `apotech-os build` | Build the app bundle |
43
- | `apotech-os plan --remote <name>` | Diff the local manifest against the server |
44
- | `apotech-os apply --remote <name>` | Apply the manifest to the server |
45
- | `apotech-os publish --remote <name>` | Publish a versioned release |
46
- | `apotech-os remote add --url <url> --as <name>` | Register a remote |
47
- | `apotech-os login --remote <name>` | Obtain and store an API key |
48
-
49
- See `docs/app-platform/app-developer-guide.md` in the repo for the full guide.