hufi-cli 0.0.1 → 0.4.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.
package/README.md CHANGED
@@ -1,15 +1,66 @@
1
1
  # hufi-cli
2
2
 
3
- To install dependencies:
3
+ CLI tool for the hu.fi DeFi platform.
4
+
5
+ ## Install
4
6
 
5
7
  ```bash
6
8
  bun install
7
9
  ```
8
10
 
9
- To run:
11
+ ## Usage
10
12
 
11
13
  ```bash
12
- bun run index.ts
14
+ # Show help
15
+ bunx hufi-cli --help
16
+
17
+ # Authenticate
18
+ bunx hufi-cli auth login --private-key 0x...
19
+
20
+ # Generate a new wallet
21
+ bunx hufi-cli auth generate
22
+
23
+ # Check auth status
24
+ bunx hufi-cli auth status
25
+
26
+ # Register exchange API key
27
+ bunx hufi-cli exchange register --name mexc --api-key xxx --secret-key yyy
28
+
29
+ # List exchange API keys
30
+ bunx hufi-cli exchange list
31
+
32
+ # Check campaign join status
33
+ bunx hufi-cli campaign status --chain-id 137 --address 0x...
34
+
35
+ # Join a campaign
36
+ bunx hufi-cli campaign join --chain-id 137 --address 0x...
37
+
38
+ # List joined campaigns
39
+ bunx hufi-cli campaign list --limit 20
13
40
  ```
14
41
 
15
- This project was created using `bun init` in bun v1.3.9. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
42
+ ## Global Options
43
+
44
+ - `--json` - Output as JSON (available on all commands)
45
+
46
+ ## Configuration
47
+
48
+ Configuration is stored at `~/.hufi-cli/config.json`.
49
+
50
+ ## API Endpoints
51
+
52
+ - Recording Oracle: `https://ro.hu.finance`
53
+ - Campaign Launcher: `https://cl.hu.finance`
54
+
55
+ ## Development
56
+
57
+ ```bash
58
+ # Run directly
59
+ bunx hufi-cli --help
60
+
61
+ # Run tests
62
+ bun test
63
+
64
+ # Type check
65
+ bun run typecheck
66
+ ```