@protobase/cli 0.96.10 → 0.96.11

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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.96.10";
2
+ var version = "0.96.11";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.96.10",
3
+ "version": "0.96.11",
4
4
  "description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,13 +43,13 @@
43
43
  "dependencies": {
44
44
  "@better-auth/core": "^1.7.12",
45
45
  "@hono/node-server": "^2.1.3",
46
- "@protobase/config": "0.96.10",
47
- "@protobase/layout": "0.96.10",
48
- "@protobase/query": "0.96.10",
49
- "@protobase/schema": "0.96.10",
50
- "@protobase/server": "0.96.10",
51
- "@protobase/ui": "0.96.10",
52
- "@protobase/workflows": "0.96.10",
46
+ "@protobase/config": "0.96.11",
47
+ "@protobase/layout": "0.96.11",
48
+ "@protobase/query": "0.96.11",
49
+ "@protobase/schema": "0.96.11",
50
+ "@protobase/server": "0.96.11",
51
+ "@protobase/ui": "0.96.11",
52
+ "@protobase/workflows": "0.96.11",
53
53
  "@react-email/render": "^2.1.0",
54
54
  "@scalar/hono-api-reference": "^0.12.10",
55
55
  "@sentry/vite-plugin": "^11.10.0",
@@ -4,6 +4,7 @@
4
4
 
5
5
  Start a new app, or an admin over an existing Postgres database, and keep the config in step with it.
6
6
 
7
+ - [Try it on Windows](../getting-started.md#try-it-on-windows): One line in the Run box or a terminal starts a local Protobase with workflows on and a sample workflow, with nothing installed, and one folder to delete afterwards.
7
8
  - [Project starter](../getting-started.md#start-an-app): `npm create protobase` (also `bun create` and `pnpm create`) starts a new app from the scratch, automations (workflows on), ERP, property portal or real estate preset, with its own Postgres in Docker for development, and prints the next steps. Each preset has an `AGENTS.md` with rules for coding agents.
8
9
  - [Start on an existing database](../getting-started.md#on-an-existing-database): `npm create protobase <database-url>` makes a project on a Postgres database you already have and asks which of its tables become resources, only reading the database.
9
10
  - [Example apps](../getting-started.md#run-the-erp-example): Seeded example apps on Postgres: an ERP, real estate property management and a public property portal.
@@ -8,6 +8,16 @@ Protobase is a config-driven admin panel framework for existing Postgres databas
8
8
 
9
9
  An app's own React code, its components, field types and actions, is a [plugin](reference/plugins.md): built on its own against a plugin API that Protobase's releases keep, and loaded by the admin app when it starts. Protobase maintains the admin app, the API and the server, and a plugin keeps working as the app moves to newer releases, with their fixes and features, without changes of its own. Below 1.0 a new minor version may still change the config, and the bundle is built again for it; the plugins' code stays as it is (see [Who maintains what](reference/plugins.md#who-maintains-what)).
10
10
 
11
+ ## Try it on Windows
12
+
13
+ To see whether Protobase is of use before setting anything up, paste this line into the Run box (Win+R), a Command Prompt or PowerShell:
14
+
15
+ ```
16
+ powershell -c "irm https://docs.protobase.net/try.ps1|iex"
17
+ ```
18
+
19
+ It downloads `protobase-try.exe` from the latest release, about 45 MB, and PostgreSQL 18, about 40 MB, once, and starts the [automations](#start-an-app) preset with [workflows](reference/workflows.md) on, on this computer alone. It prints the address, `http://localhost:3000` unless that port is taken, and an admin's email and password, adds a sample workflow, "Say hello", and opens the browser. Nothing is installed and nothing needs Git, Node or Bun: the program, the database and the app's files stay in `%LOCALAPPDATA%\Protobase\automations`, with the password in `sign-in.txt` there. Ctrl+C or closing the window stops it; the line starts it again, and takes the newer program when a release is out. To remove everything, stop it and delete that folder. It is a trial of a finished app, not a project to change: [Start an app](#start-an-app) makes one.
20
+
11
21
  ## Start an app
12
22
 
13
23
  `npm create protobase my-app` asks which preset to start from, scratch (the default), automations (scratch with [workflows](reference/workflows.md) on), the ERP, the property portal or real estate, writes the project into `my-app`, with the `@protobase` packages in `devDependencies` at the caret range of the latest release, so it is [bundled](reference/versioning.md#bundled-and-locked-projects): dev, the build and its scripts run the CLI's own copies, and a newer CLI in that range updates it with no change to its files. It prints the next steps. Without a folder it asks for one too. `--preset <name>` picks the preset without asking; without a terminal it takes scratch. `bun create protobase` and `pnpm create protobase` do the same, and take `--preset` without the `--` that npm needs. It needs Node 22.12 or later. Each preset has an `AGENTS.md` with the rules for a coding agent that changes the app, such as a new migration file for every schema change.
@@ -155,4 +165,4 @@ bun run --cwd tests/apps/property-portal dev # http://localhost:517
155
165
  | `bun run release --dry-run` | the next version and its changelog, from the commits since the last release (see [Versioning](reference/versioning.md)) |
156
166
  | `bun run docs:check` | opens every page of the built site in Chromium and fails on console errors and failed requests; `BASE=https://docs.protobase.net` checks the live site |
157
167
 
158
- Each public import is a package in `packages/` (`@protobase/schema`, `layout`, `query`, `client`, `ui`, `server`, `config` for `protobase.config.ts`, `mobile` for `protobase mobile`, and `cli` for the `protobase` command); `packages/presets` writes the projects a new app starts from and is not published; `packages/create-protobase` is `npm create protobase`, with every preset. See [Architecture](reference/architecture.md) for the layout and import rules.
168
+ Each public import is a package in `packages/` (`@protobase/schema`, `layout`, `query`, `client`, `ui`, `server`, `config` for `protobase.config.ts`, `mobile` for `protobase mobile`, and `cli` for the `protobase` command); `packages/presets` writes the projects a new app starts from and is not published; `packages/try` builds `protobase-try.exe` for [Try it on Windows](#try-it-on-windows) and is not published either; `packages/create-protobase` is `npm create protobase`, with every preset. See [Architecture](reference/architecture.md) for the layout and import rules.
@@ -4,7 +4,7 @@
4
4
 
5
5
  How Protobase is versioned and released, the commit convention behind it, bundled and locked projects, and which bundles a serve runtime runs.
6
6
 
7
- Protobase follows [semantic versioning](https://semver.org). Every push to `main` that holds a fix, a feature or a breaking change is released: the pushed commit is tagged `v<version>`, and a [GitHub release](https://github.com/PrototeamHQ/protobase/releases) of that tag holds the release's changes. Every `@protobase` package is then published to npm at that version. A release adds no commit to `main`: a release's version is its tag, not a `package.json` field, so the version in the repository's `package.json` files is not bumped. `CHANGELOG.md` lists only the releases from before releases stopped committing.
7
+ Protobase follows [semantic versioning](https://semver.org). Every push to `main` that holds a fix, a feature or a breaking change is released: the pushed commit is tagged `v<version>`, and a [GitHub release](https://github.com/PrototeamHQ/protobase/releases) of that tag holds the release's changes, and `protobase-try.zip` with `protobase-try.version`, the Windows program behind [Try it on Windows](../getting-started.md#try-it-on-windows). Every `@protobase` package is then published to npm at that version. A release adds no commit to `main`: a release's version is its tag, not a `package.json` field, so the version in the repository's `package.json` files is not bumped. `CHANGELOG.md` lists only the releases from before releases stopped committing.
8
8
 
9
9
  ## Versions below 1.0
10
10