@onreza/nrz 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.
Files changed (2) hide show
  1. package/README.md +101 -0
  2. package/package.json +22 -0
package/README.md ADDED
@@ -0,0 +1,101 @@
1
+ # nrz — ONREZA Platform CLI
2
+
3
+ [![CI](https://github.com/ONREZA/nrz-cli/actions/workflows/release.yml/badge.svg)](https://github.com/ONREZA/nrz-cli/actions)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
5
+
6
+ > Analog of `vercel` / `wrangler` for ONREZA platform. Rust-based, single binary.
7
+
8
+ ## Installation
9
+
10
+ ### Quick Install
11
+
12
+ **Linux/macOS:**
13
+ ```bash
14
+ curl -fsSL https://raw.githubusercontent.com/ONREZA/nrz-cli/main/install.sh | bash
15
+ ```
16
+
17
+ **Windows (PowerShell):**
18
+ ```powershell
19
+ iwr -useb https://raw.githubusercontent.com/ONREZA/nrz-cli/main/install.ps1 | iex
20
+ ```
21
+
22
+ ### From Source
23
+
24
+ ```bash
25
+ cargo install --git https://github.com/ONREZA/nrz-cli
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ ```bash
31
+ # Development mode with platform emulation
32
+ nrz dev
33
+
34
+ # Validate build output
35
+ nrz build
36
+
37
+ # Deploy to platform
38
+ nrz deploy
39
+
40
+ # Manage KV store
41
+ nrz kv set mykey "my value"
42
+ nrz kv get mykey
43
+ nrz kv list
44
+
45
+ # Manage D1-compatible SQLite database
46
+ nrz db execute "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)"
47
+ nrz db info
48
+
49
+ # Self-update
50
+ nrz upgrade
51
+ ```
52
+
53
+ ## Supported Platforms
54
+
55
+ | Platform | Binary |
56
+ |----------|--------|
57
+ | Linux x64 | `nrz-linux-x64` |
58
+ | macOS x64 | `nrz-macos-x64` |
59
+ | macOS ARM64 | `nrz-macos-arm64` |
60
+ | Windows x64 | `nrz-windows-x64.exe` |
61
+
62
+ ## Features
63
+
64
+ - 🚀 **Dev Server** — Local development with KV, DB, and Context emulation
65
+ - 📦 **Build Validation** — Verify output against BUILD_OUTPUT_SPEC v1
66
+ - ☁️ **Deploy** — Push to ONREZA platform
67
+ - 🔄 **Self-update** — Built-in upgrade mechanism
68
+ - 🔧 **Framework Detection** — Auto-detect Astro, Nuxt, SvelteKit, Nitro
69
+
70
+ ## Development
71
+
72
+ ```bash
73
+ # Run tests
74
+ cargo test
75
+
76
+ # Build release binary
77
+ cargo build --release
78
+
79
+ # Generate changelog
80
+ git-cliff -o CHANGELOG.md
81
+ ```
82
+
83
+ ## Commit Convention
84
+
85
+ This project follows [Conventional Commits](https://www.conventionalcommits.org/):
86
+
87
+ ```
88
+ feat(scope): add new feature
89
+ fix(scope): fix bug
90
+ docs(scope): update documentation
91
+ perf(scope): optimize performance
92
+ ```
93
+
94
+ ## Related
95
+
96
+ - [onreza/adapters](https://github.com/onreza/adapters) — TypeScript adapters
97
+ - [onreza/deployment](https://github.com/onreza/deployment) — Platform infrastructure
98
+
99
+ ## License
100
+
101
+ MIT © ONREZA
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@onreza/nrz",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "description": "ONREZA platform CLI",
6
+ "files": [
7
+ "bin",
8
+ "scripts",
9
+ "README.md",
10
+ "LICENSE"
11
+ ],
12
+ "scripts": {
13
+ "prepare": "lefthook install || echo 'Install lefthook: https://github.com/evilmartians/lefthook'",
14
+ "commitlint": "commitlint",
15
+ "release": "onreza-release"
16
+ },
17
+ "devDependencies": {
18
+ "@commitlint/cli": "^18.6.0",
19
+ "lefthook": "^1.6.0",
20
+ "onreza-release": "^2.5.0"
21
+ }
22
+ }