hostedge 0.0.0-stage → 0.1.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 +28 -2
- package/dist/hostedge.js +2461 -0
- package/package.json +47 -4
package/README.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# hostedge CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Deploy a folder to HostEdge from your terminal.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npx hostedge login # opens your browser; or: hostedge login --token hostedge_…
|
|
7
|
+
npx hostedge deploy # uploads changed files, streams the build log, prints the URL
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
| Command | What it does |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| `hostedge login [--token <t>] [--api <url>]` | Signs in. The browser flow creates a 90-day token scoped to the CLI. |
|
|
13
|
+
| `hostedge logout` | Forgets the saved token (revoke it in Settings → API tokens). |
|
|
14
|
+
| `hostedge whoami` | Shows the account, workspace and scopes in use. |
|
|
15
|
+
| `hostedge init [dir] [--name] [--project <id\|slug>]` | Links a folder to a new or existing project (`.hostedge/project.json`). |
|
|
16
|
+
| `hostedge deploy [dir] [--preview] [-m <message>] [--no-wait]` | Deploys; links the folder on first deploy. Exits 1 if the build fails. |
|
|
17
|
+
| `hostedge logs [-f] [--level <l>] [--search <text>] [--since 1h\|24h\|7d]` | Runtime logs, oldest first; `-f` follows. |
|
|
18
|
+
| `hostedge env pull [-e <environment>] [--file <path>]` | Writes variables to `.env.local` (0600, added to `.gitignore`). |
|
|
19
|
+
|
|
20
|
+
In CI, set `HOSTEDGE_TOKEN` (create one in Settings → API tokens with the `deployments:write`
|
|
21
|
+
scope) and run `npx hostedge deploy`. `HOSTEDGE_API_URL` points the CLI at another HostEdge
|
|
22
|
+
(e.g. `http://localhost:3000` in development).
|
|
23
|
+
|
|
24
|
+
The CLI follows the dashboard's upload rules: `.git`, `node_modules` and similar folders are
|
|
25
|
+
skipped, secret-looking files (`.env*`, keys) are left behind, and symbolic links are refused.
|
|
26
|
+
Only files HostEdge doesn't already have are uploaded.
|
|
27
|
+
|
|
28
|
+
Development: `pnpm --filter hostedge build` bundles `dist/hostedge.js` (no runtime
|
|
29
|
+
dependencies); `pnpm --filter hostedge test` runs the commands against a fake API.
|