wirl 0.2.0 → 0.2.2

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 (3) hide show
  1. package/README.md +13 -10
  2. package/bin.js +1322 -202
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -3,17 +3,16 @@
3
3
  Deploy an internal app somewhere real, privately. One command puts the folder you are in on a URL that only your company can open.
4
4
 
5
5
  ```bash
6
- npm install -g https://app.wirl.dev/cli/wirl.tgz
7
- wirl login # a link and a code; approve in the browser
8
- wirl init my-tool --server
6
+ npx wirl login # a link and a code; approve in the browser
7
+ npx wirl init my-tool --server
9
8
  cd my-tool
10
- wirl dev # runs it here, signed in as a stub user
11
- wirl preview # a private address to look at it before it is live
12
- wirl deploy # builds, scans, deploys; prints the URL
13
- wirl share dana@company.com
9
+ npx wirl dev # runs it here, signed in as a stub user
10
+ npx wirl preview # a private address to look at it before it is live
11
+ npx wirl deploy # builds, scans, deploys; prints the URL
12
+ npx wirl share dana@company.com
14
13
  ```
15
14
 
16
- Install it from wirl itself, as above, and run plain `wirl`. Do not run `npx wirl`: that name on npm belongs to an unrelated older package today, and `npx` would fetch that one.
15
+ `npx` fetches the CLI from npm the first time and needs no install beyond Node 22.13 or later; in a terminal npm first asks "Ok to proceed? (y)": answer y. Elsewhere in this README a command is written `wirl <command>`, for short: run it as `npx wirl <command>`, or run `npm install -g wirl` once and use plain `wirl`. If your npm registry does not carry wirl, or to run exactly the build app.wirl.dev serves, install from app.wirl.dev instead: `npm install -g https://app.wirl.dev/cli/wirl.tgz`, and run plain `wirl`.
17
16
 
18
17
  Sign in with your work Google account and you are in your company's workspace. Anything a colleague deploys there is yours to open, and nobody outside the company can. A personal account gets a space of its own.
19
18
 
@@ -36,16 +35,20 @@ A static folder needs nothing. A server-side app is one JavaScript module export
36
35
  claude mcp add --transport http wirl https://app.wirl.dev/mcp
37
36
  ```
38
37
 
39
- That opens the browser once to sign in. The token an agent gets can deploy, roll back and pull, and cannot share apps, change who can open them, or touch connections, members or tokens. Ticking one box at consent grants full access. See the docs for what each scope covers.
38
+ `claude mcp add` only saves the server's configuration. Then sign in: run `/mcp` inside Claude Code and follow the steps in the browser, or run `claude mcp login wirl` in a terminal. The token an agent gets can deploy, roll back and pull, and cannot share apps, change who can open them, or touch connections, members or tokens. Ticking one box at consent grants full access. See the docs for what each scope covers.
40
39
 
41
40
  ## Everything else
42
41
 
43
42
  ```bash
44
- wirl --help
43
+ npx wirl --help
45
44
  ```
46
45
 
47
46
  Orgs, members, connections, transfer, move, versions, rollback, pull, previews, logs, schedules, run.
48
47
 
48
+ ## Versions
49
+
50
+ The npm package and the control plane are versioned separately. `npx wirl` runs the latest CLI published to npm, and app.wirl.dev runs the build it was last deployed with, so either can be the newer. A CLI newer than the control plane says so where it can tell: `its control plane is older than this copy of wirl` (from `wirl migrations` and `wirl migrations adopt`), or `this control plane is older than sending wirl.json in the body, so it cannot take it` when a `wirl.json` is too large for a header. A CLI older than the control plane sends your whole `wirl.json` and says of a key it does not read that it `is not a key this version of wirl reads, so it is ignored`, though the control plane may read it; it checks `wirl.json` against its own rules before it uploads, so update the CLI (`npm install -g wirl@latest`, or `npx wirl@latest <command>`) when a deploy is refused on your machine for something the docs allow.
51
+
49
52
  ## Requirements
50
53
 
51
54
  Node 22.13 or later. Credentials live in `~/.config/wirl/credentials.json` after `wirl login`, or in `WIRL_TOKEN` for CI and sandboxes.