flypod 0.6.0 → 0.7.0
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 +14 -14
- package/dist/bin/deploy.js +379 -661
- package/dist/{cli-ynzcc4xy.js → cli-j9rxpfdv.js} +135 -16
- package/dist/src/cli/client.d.ts +87 -0
- package/dist/src/cli/paths.d.ts +17 -0
- package/dist/src/cli/session.d.ts +11 -0
- package/dist/src/cli.d.ts +54 -0
- package/dist/src/cli.js +1 -1
- package/package.json +12 -10
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ npx flypod ./dist
|
|
|
11
11
|
|
|
12
12
|
- **No auth to deploy** — POST a zip, receive a URL + one-time tokens
|
|
13
13
|
- **Ephemeral by default** — anonymous deploys expire in 14 days
|
|
14
|
-
- **Optional accounts** — sign in once at [`flypod.dev/account`](https://flypod.dev/account)
|
|
14
|
+
- **Optional accounts** — sign in once at [`flypod.dev/account`](https://flypod.dev/account), then run `flypod login` to connect the CLI through a browser device flow. Owned deploys do not expire.
|
|
15
15
|
- **Rollback built-in** — every deploy is versioned; roll back with a single call
|
|
16
16
|
- **Render loop** — optional headless screenshot + console capture on every deploy
|
|
17
17
|
|
|
@@ -92,15 +92,15 @@ The URL is always printed alone on stdout in pretty and quiet modes, so
|
|
|
92
92
|
|
|
93
93
|
| Variable | Description |
|
|
94
94
|
|----------|-------------|
|
|
95
|
-
| `
|
|
95
|
+
| `FLYPOD_TOKEN` | Use an existing account session token without writing a login file (agents / CI). Takes precedence over a saved session |
|
|
96
96
|
| `DEPLOY_URL` | Override the deploy server (default: `https://flypod.dev`) |
|
|
97
97
|
| `NO_COLOR` | Disable ANSI colors |
|
|
98
98
|
| `FORCE_COLOR` | Force colors even when stderr is not a TTY |
|
|
99
99
|
|
|
100
|
-
### Install globally to skip
|
|
100
|
+
### Install globally to skip the package runner
|
|
101
101
|
|
|
102
102
|
```sh
|
|
103
|
-
|
|
103
|
+
bun add --global flypod
|
|
104
104
|
flypod
|
|
105
105
|
```
|
|
106
106
|
|
|
@@ -249,7 +249,7 @@ interface DeployResult {
|
|
|
249
249
|
expires_at: number | null; // unix ms when anonymous, null when owned (authenticated)
|
|
250
250
|
claim_token?: string; // per-site claim token when anonymous; omitted when owned
|
|
251
251
|
manage_token: string; // one-time; redeploy, rollback, delete
|
|
252
|
-
owner_account_id?: string; // present on authenticated deploys (cookie or
|
|
252
|
+
owner_account_id?: string; // present on authenticated deploys (cookie or session token)
|
|
253
253
|
next_actions: unknown[];
|
|
254
254
|
}
|
|
255
255
|
```
|
|
@@ -265,7 +265,7 @@ Reads a local directory into a `Record<string, Uint8Array>` map for `deploySite`
|
|
|
265
265
|
The CLI commands above (`update`, `versions`, `rollback`) wrap these endpoints —
|
|
266
266
|
reach for raw HTTP only when scripting against the API directly. All management
|
|
267
267
|
calls authorize with the `manage_token` returned on first deploy (or an account
|
|
268
|
-
|
|
268
|
+
account session for owned sites).
|
|
269
269
|
|
|
270
270
|
```sh
|
|
271
271
|
# redeploy a new version
|
|
@@ -293,11 +293,10 @@ The `manage_token` keeps working exactly as v0.1 — accounts are an
|
|
|
293
293
|
upgrade path, not a replacement.
|
|
294
294
|
|
|
295
295
|
```sh
|
|
296
|
-
flypod login
|
|
297
|
-
flypod list # your sites
|
|
298
|
-
flypod claim <id> <token> # attach an anonymous deploy by its
|
|
299
|
-
flypod
|
|
300
|
-
flypod logout # forget the local key
|
|
296
|
+
flypod login # approve this CLI in your browser
|
|
297
|
+
flypod list # your sites (JSON)
|
|
298
|
+
flypod claim <id> <token> # attach an anonymous deploy by its claim token
|
|
299
|
+
flypod logout # forget the local session
|
|
301
300
|
```
|
|
302
301
|
|
|
303
302
|
After running `flypod login` once, every subsequent `flypod` deploy is
|
|
@@ -306,9 +305,10 @@ attributed to your account: no expiry, no claim_token, listed under
|
|
|
306
305
|
`flypod.dev/account` and every site you've deployed from that browser
|
|
307
306
|
gets absorbed in one bulk-UPDATE.
|
|
308
307
|
|
|
309
|
-
For
|
|
310
|
-
|
|
311
|
-
|
|
308
|
+
For a stateless agent or CI job, set `FLYPOD_TOKEN` to a Better Auth session
|
|
309
|
+
token. The CLI sends it as `Authorization: Bearer <token>`. The legacy
|
|
310
|
+
`FLYPOD_API_KEY` variable is still accepted for compatibility, but new setups
|
|
311
|
+
should use `FLYPOD_TOKEN`.
|
|
312
312
|
|
|
313
313
|
Login on the web uses **magic link** or **email + password** — pick the one you
|
|
314
314
|
prefer; both land you in the same account.
|