@freeticket/cli 0.1.1 → 0.4.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 (3) hide show
  1. package/README.md +9 -9
  2. package/dist/index.js +1174 -79
  3. package/package.json +13 -4
package/README.md CHANGED
@@ -51,17 +51,17 @@ ft --version
51
51
  ## Quickstart
52
52
 
53
53
  ```bash
54
- # 1. Issue an API key in the backend (server side):
55
- # pnpm api:key you@example.com
56
- # -> returns an ft_live_xxxxx key (shown only once)
54
+ # 1. Log in through the browser (OAuth device flow). Prints a code, opens your
55
+ # browser, you approve, and the session is stored in ~/.freeticket/config.json.
56
+ ft login
57
57
 
58
- # 2. Log in (stores the key in ~/.freeticket/config.json and verifies it)
59
- ft login --key ft_live_xxxxx
58
+ # CI / automation: skip the browser with a backend-issued key instead.
59
+ # ft login --key ft_live_xxxxx
60
60
 
61
- # 3. Who am I, and which workspaces can I access?
61
+ # 2. Who am I, and which workspaces can I access?
62
62
  ft whoami
63
63
 
64
- # 4. Start exploring
64
+ # 3. Start exploring
65
65
  ft events list
66
66
  ft reports summary --period 30d
67
67
  ft sales list --status CONFIRMED --json
@@ -71,7 +71,7 @@ ft sales list --status CONFIRMED --json
71
71
 
72
72
  | Command | What it does | Minimum role |
73
73
  |---|---|---|
74
- | `ft login --key <key>` | Stores and verifies your API key | VIEWER |
74
+ | `ft login` | Browser login (device flow); `--key <key>` for CI | VIEWER |
75
75
  | `ft whoami` | Active user and accessible workspaces | VIEWER |
76
76
  | `ft config` · `ft logout` | Show config (masked key) · remove key | — |
77
77
  | `ft events list` · `get <id>` | Workspace events | VIEWER |
@@ -170,7 +170,7 @@ CLI QA, and release/devops. See the [agents README](./.claude/agents/README.md).
170
170
  ## Requirements
171
171
 
172
172
  - Node.js **>= 20**
173
- - A FreeTicket API key (`ft_live_...`)
173
+ - A FreeTicket account (`ft login` opens the browser; no API key needed)
174
174
 
175
175
  ## License
176
176