inflight-cli 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/README.md +45 -21
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,36 +1,60 @@
1
1
  # inflight-cli
2
2
 
3
- The official CLI for [Inflight](https://inflight.co).
3
+ Get feedback directly on your staging URL with [Inflight](https://inflight.co).
4
4
 
5
- ## Development
6
-
7
- ### Run locally
5
+ ## Installation
8
6
 
9
7
  ```bash
10
- cd apps/cli
11
- bun run src/index.ts <command>
8
+ npm install -g inflight-cli
12
9
  ```
13
10
 
14
- ### Run against staging
11
+ ## Quick Start
15
12
 
16
13
  ```bash
17
- INFLIGHT_API_URL=https://staging-api.inflight.co INFLIGHT_WEB_URL=https://staging.inflight.co bun run src/index.ts <command>
14
+ # Log in to your Inflight account
15
+ inflight login
16
+
17
+ # Add Inflight to your staging URL
18
+ inflight share
18
19
  ```
19
20
 
20
- For the `preview` command, also set `INFLIGHT_SHARE_API_URL`.
21
+ That's it. The CLI will detect your Vercel deployments automatically and open your staging URL with Inflight attached.
21
22
 
22
- ### Build
23
+ ## Commands
23
24
 
24
- ```bash
25
- bun run build
26
- ```
25
+ ### `inflight login`
26
+
27
+ Authenticate with your Inflight account. Opens a browser window to sign in.
28
+
29
+ ### `inflight logout`
30
+
31
+ Disconnect your Inflight account from this machine.
32
+
33
+ ### `inflight share`
34
+
35
+ Add Inflight to a staging URL. The CLI will:
36
+
37
+ 1. Detect your Vercel project and show available deployments
38
+ 2. Let you pick a branch preview or a specific deployment
39
+ 3. Open the staging URL with Inflight attached
40
+
41
+ If you're not using Vercel, you can paste any staging URL manually.
42
+
43
+ ### `inflight workspace`
44
+
45
+ Switch the active workspace for the current project directory.
46
+
47
+ ## Vercel Integration
48
+
49
+ The CLI integrates with Vercel to automatically detect your deployments. On first run, it will:
50
+
51
+ 1. Check if you're logged in to Vercel (reads your existing Vercel CLI auth)
52
+ 2. Link to your Vercel project if not already linked
53
+ 3. Show your branch preview URL and recent deployments
54
+
55
+ No extra configuration needed if you already use the Vercel CLI.
27
56
 
28
- ### Commands
57
+ ## Requirements
29
58
 
30
- | Command | Description |
31
- | ----------- | ---------------------------------------- |
32
- | `login` | Authenticate with your Inflight account |
33
- | `logout` | Disconnect your Inflight account |
34
- | `share` | Get feedback on your staging URL |
35
- | `preview` | Preview a live component from your code |
36
- | `workspace` | Switch the workspace for this project |
59
+ - Node.js 18+
60
+ - A free [Inflight](https://inflight.co) account
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inflight-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Get feedback directly on your staging URL",
5
5
  "bin": {
6
6
  "inflight": "dist/index.js"