nebulon-escrow-cli 0.1.0 → 0.8.5

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 CHANGED
@@ -1,14 +1,105 @@
1
1
  # Nebulon CLI
2
2
 
3
- Local development:
3
+ Nebulon CLI is the command-line interface for managing Nebulon escrow contracts,
4
+ wallets, capsules, and hosted profile actions. It supports MagicBlock ephemeral
5
+ rollups for contract operations and provides end-to-end contract workflows,
6
+ including terms, milestones, funding, and claims.
4
7
 
8
+ ## Requirements
9
+
10
+ - Node.js 18 or newer
11
+ - npm 9 or newer
12
+
13
+ ## Installation
14
+
15
+ Global install from npm:
16
+
17
+ ```bash
18
+ npm install -g nebulon-escrow-cli
5
19
  ```
20
+
21
+ From source:
22
+
23
+ ```bash
6
24
  cd CLI
7
25
  npm install
8
26
  npm link
27
+ ```
28
+
29
+ ## Quick start
30
+
31
+ ```bash
9
32
  nebulon init
33
+ nebulon login
34
+ nebulon status
35
+ ```
36
+
37
+ The `init` flow sets up a capsule, wallet, and network defaults. `login` connects
38
+ to hosted services. Use `status` to verify connectivity and balances.
39
+
40
+ ## Command overview
41
+
42
+ Run `nebulon help` for the full list. Common commands:
43
+
44
+ - `nebulon init` - interactive setup (banner shows the CLI version)
45
+ - `nebulon status` - account summary
46
+ - `nebulon login` / `nebulon logout`
47
+ - `nebulon capsule list` / `nebulon capsule use <name>`
48
+ - `nebulon contract ...` - create and manage escrow contracts
49
+ - `nebulon invite list` / `nebulon invite <id>`
50
+ - `nebulon balance` / `nebulon address`
51
+ - `nebulon wallet export`
52
+ - `nebulon config` / `nebulon config <key> <value>`
53
+
54
+ ### Contract commands (examples)
55
+
56
+ ```bash
57
+ nebulon contract list
58
+ nebulon contract <id> details
59
+ nebulon contract <id> add term payment 20
60
+ nebulon contract <id> add term deadline 8d
61
+ nebulon contract <id> add milestone "Draft spec"
62
+ nebulon contract <id> sign
63
+ nebulon contract <id> fund
64
+ nebulon contract <id> milestone 1 ready
65
+ nebulon contract <id> milestone 1 confirm
66
+ nebulon contract <id> claim_funds
67
+ ```
68
+
69
+ ### Verbose diagnostics
70
+
71
+ Use `--verbose` on contract commands to show additional progress and routing
72
+ details:
73
+
74
+ ```bash
75
+ nebulon contract <id> fund --verbose
10
76
  ```
11
77
 
12
- Notes:
13
- - This package is private for now. Do not publish to npm until you are ready.
14
- - Config and wallets are stored under `~/.nebulon/`.
78
+ ## Configuration and storage
79
+
80
+ By default, configuration and wallets are stored under:
81
+
82
+ - Windows: `%USERPROFILE%\\.nebulon\\`
83
+ - macOS/Linux: `~/.nebulon/`
84
+
85
+ Capsules live under `~/.nebulon/capsules/`. You can override the base directory
86
+ with the `NEBULON_HOME` environment variable.
87
+
88
+ Wallet import and export:
89
+
90
+ - Import expects keypair files in `C:\\Nebulon\\Wallets` (Windows).
91
+ - Export writes the active wallet to `C:\\Nebulon\\Wallets`.
92
+
93
+ ## Version
94
+
95
+ ```bash
96
+ nebulon --version
97
+ nebulon -v
98
+ ```
99
+
100
+ ## Troubleshooting
101
+
102
+ - If `login` or hosted actions fail, re-run `nebulon config` and confirm backend
103
+ URLs and network settings.
104
+ - If RPC calls fail, verify the configured `rpcUrl` and `wsUrl`.
105
+ - Use `nebulon contract ... --verbose` for detailed progress output.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "nebulon-escrow-cli",
3
- "version": "0.1.0",
3
+ "version": "0.8.5",
4
4
  "description": "Nebulon CLI",
5
5
  "author": "northbyt3 <northbyt3@gmail.com>",
6
6
  "license": "UNLICENSED",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/northbyt3/nebulon-public.git"
9
+ "url": "git+https://github.com/northbyt3/nebulon-public.git"
10
10
  },
11
11
  "private": false,
12
12
  "bin": {
package/src/cli.js CHANGED
@@ -12,8 +12,7 @@ const { runHostedMe, runHostedFaucet } = require("./commands/hosted");
12
12
  const { runWalletShow, runWalletBalance, runWalletExport } = require("./commands/wallet");
13
13
  const { runTestTee } = require("./commands/tee");
14
14
  const { errorMessage } = require("./ui");
15
-
16
- const VERSION = "0.1.0";
15
+ const { VERSION } = require("./version");
17
16
  const program = new Command();
18
17
  let hasFatalError = false;
19
18
 
@@ -184,6 +183,7 @@ program
184
183
  .argument("[rest...]", "contract sub-commands")
185
184
  .option("--confirm", "skip confirmation prompts")
186
185
  .option("--full-fields", "show full list fields without truncation")
186
+ .option("--verbose", "show verbose diagnostics")
187
187
  .action(async (target, rest, options) => {
188
188
  const args = [];
189
189
  if (target) {