deployai 0.1.0-beta.2 → 0.1.0-beta.4
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 +10 -7
- package/dist/index.js +239 -114
- package/package.json +49 -12
package/README.md
CHANGED
|
@@ -41,12 +41,12 @@ Node 20 or newer. No other setup: the CLI talks to https://deployai.co.il.
|
|
|
41
41
|
| `deployai init` | Creates `DEPLOYAI.md` (rules for the AI agent) and `.deployai/project.json`. Never edits your code and does not link a project (use `link`). `--force` overwrites `DEPLOYAI.md`. |
|
|
42
42
|
| `deployai inspect` | Shows framework, package manager, language, database, storage and the number of env files (values are never read). `--json` for machine output. |
|
|
43
43
|
| `deployai check` | Lists blockers and warnings with file and line. It answers only whether the project can run on DeployAI. More below. |
|
|
44
|
-
| `deployai login` | Logs in through the browser (device code). The token is stored in `~/.deployai/config.json
|
|
45
|
-
| `deployai logout` |
|
|
44
|
+
| `deployai login` | Logs in through the browser (device code). The token lasts 30 days and is stored in `~/.deployai/config.json` with the API address that issued it; it is never sent to another address. |
|
|
45
|
+
| `deployai logout` | Cancels the token on DeployAI and removes it from this computer. |
|
|
46
46
|
| `deployai whoami` | Shows the logged in user. |
|
|
47
|
-
| `deployai link [project]` | Links this folder to a project (slug, id or name). `--create "<name>"` makes a new project. |
|
|
47
|
+
| `deployai link [project]` | Links this folder to a project (slug, id or name). `--create "<name>"` makes a new project. With no name it never links on its own: in a terminal it asks first, an agent gets the exact `link <slug>` command. |
|
|
48
48
|
| `deployai deploy -m "<message>"` | Runs the check, packs the source and uploads it. Prints the version, the queue position and the preview address. |
|
|
49
|
-
| `deployai versions` | Lists versions: number, live or not, status, date, size, message. |
|
|
49
|
+
| `deployai versions` | Lists versions: number, live or not, status ("replaced by a newer upload" for one that never built), date, size, message, and a dashboard link when its SQL waits for approval. |
|
|
50
50
|
| `deployai rollback v5` | Puts version 5 back live, with no rebuild. |
|
|
51
51
|
| `deployai promote v5` | Puts version 5 live. |
|
|
52
52
|
| `deployai status` | Site state, address, live version and queue. |
|
|
@@ -78,6 +78,7 @@ Global options:
|
|
|
78
78
|
**`deployai deploy --guest`**
|
|
79
79
|
- No login needed: puts the site live as a temporary site with a claim link, deleted after the days DeployAI sets unless you claim it.
|
|
80
80
|
- A temporary site may have a small database, but no file storage or environment variables.
|
|
81
|
+
- A folder linked to a site in an account refuses: run `login`, then `deploy`.
|
|
81
82
|
- For a database sample it prints the site's owner keys once ("shown once, save them now"). They are never stored, so save them right away.
|
|
82
83
|
|
|
83
84
|
**`deployai samples [name] [folder]`**
|
|
@@ -111,9 +112,11 @@ The default is `https://deployai.co.il`. The order is: `--api <url>`, then env `
|
|
|
111
112
|
The source folder, packed as a `.tar.gz`. The upload is capped at 50 MB.
|
|
112
113
|
|
|
113
114
|
Never uploaded:
|
|
114
|
-
- `node_modules`, `.git`,
|
|
115
|
+
- `node_modules`, `.git`, and tool caches like `.next`, `.astro`, `.svelte-kit`, `.wrangler`
|
|
116
|
+
- `dist`, `build`, `out` at the project root when `package.json` has a build script (DeployAI builds them again). Folders like `assets/build/` are uploaded.
|
|
117
|
+
- `.deployai/`, `DEPLOYAI.md`, `CLAUDE.md`, `AGENTS.md`, `.claude/`, `.cursor/`, `.vscode/` and other dotfiles (except `.well-known/` and build config like `.babelrc`). DeployAI never serves these either, however they arrive.
|
|
115
118
|
- Any `.env*` file
|
|
116
|
-
- Anything
|
|
119
|
+
- Anything in the root `.gitignore` or in `.deployaiignore` (gitignore style, read last, so `!file` brings a file back)
|
|
117
120
|
- Files over 10 MB
|
|
118
121
|
|
|
119
122
|
## Telemetry
|
|
@@ -143,4 +146,4 @@ pnpm --filter ./packages/cli start -- check
|
|
|
143
146
|
- `@deployai/shared` and `zod` are bundled into `dist/index.js` by tsup, so the published package depends only on `commander`.
|
|
144
147
|
- The package ships only `dist` and this README (check with `npm pack --dry-run`).
|
|
145
148
|
- Publish from this folder with `pnpm publish`: `prepublishOnly` builds and runs the tests first.
|
|
146
|
-
-
|
|
149
|
+
- On npm as `deployai`: run it with `npx deployai@latest <command>`.
|