Commit c5e221c
authored
DBOS CLI (#105)
- Add a CLI for workflow management and convenient
start/migrate/postgres utilities
- Update releaser program such that it 1) compiles the CLI against a few
common architectures and 2) attach these as assets to the release
# Usage
<img width="650" height="352" alt="Screenshot 2025-09-03 at 09 56 44"
src="https://github.com/user-attachments/assets/cbed1460-00a3-4853-9871-59b45c189c9e"
/>
# CLI installation
- Manually by downloading the asset from github
- Running `go install github.com/dbos-inc/dbos-transact-golang/cmd/dbos`
(note that the version, e.g. `@latest`, has to be specified if running
go install outside of a go project)
Example (go install and local dev build)
<img width="733" height="92" alt="Screenshot 2025-09-03 at 09 51 04"
src="https://github.com/user-attachments/assets/ba16968a-ca51-4071-bb23-fecf1ee36ed6"
/>
<img width="843" height="92" alt="Screenshot 2025-09-03 at 09 51 22"
src="https://github.com/user-attachments/assets/bf9cd879-c824-497c-b230-dfad141d9f1a"
/>
# Output format
The CLI has a global `--json` flag, e.g.:
<img width="728" height="476" alt="Screenshot 2025-09-03 at 09 55 28"
src="https://github.com/user-attachments/assets/620f89f6-9945-4695-b860-7daeb2461e1e"
/>
# Notes
- `reset` destroy / recreates the target database, but does not perform
any migration. Migrations will be applied next time a DBOS context is
created against that database.
- `init` bootstraps a `dbos-toolbox` application1 parent 68cdafb commit c5e221c
File tree
25 files changed
+2708
-69
lines changed- .github/workflows
- cmd/dbos
- templates/dbos-toolbox
- dbos
- releaser
25 files changed
+2708
-69
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
0 commit comments