@btcemail/cli 0.3.0 → 0.5.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
@@ -2,10 +2,40 @@
2
2
 
3
3
  Command-line interface for btc.email - spam-free email powered by Bitcoin Lightning.
4
4
 
5
- Current version: 0.3.0 (December 28, 2025)
5
+ Current version: 0.4.0 (December 28, 2025)
6
6
 
7
7
  ## Installation
8
8
 
9
+ ### Option 1: Pre-built Binary (Recommended)
10
+
11
+ Download the latest binary for your platform from [GitHub Releases](https://github.com/8bittts/btcemail/releases).
12
+
13
+ macOS (Apple Silicon):
14
+ ```bash
15
+ curl -L https://github.com/8bittts/btcemail/releases/latest/download/btcemail-darwin-arm64 -o btcemail
16
+ chmod +x btcemail
17
+ sudo mv btcemail /usr/local/bin/
18
+ ```
19
+
20
+ macOS (Intel):
21
+ ```bash
22
+ curl -L https://github.com/8bittts/btcemail/releases/latest/download/btcemail-darwin-x64 -o btcemail
23
+ chmod +x btcemail
24
+ sudo mv btcemail /usr/local/bin/
25
+ ```
26
+
27
+ Linux (x64):
28
+ ```bash
29
+ curl -L https://github.com/8bittts/btcemail/releases/latest/download/btcemail-linux-x64 -o btcemail
30
+ chmod +x btcemail
31
+ sudo mv btcemail /usr/local/bin/
32
+ ```
33
+
34
+ Windows:
35
+ Download `btcemail-windows-x64.exe` from the releases page and add to your PATH.
36
+
37
+ ### Option 2: npm/bun
38
+
9
39
  ```bash
10
40
  npm install -g @btcemail/cli
11
41
  ```
@@ -105,6 +135,82 @@ btcemail credits purchase # Shows options
105
135
  btcemail credits purchase --option 1 --wait
106
136
  ```
107
137
 
138
+ ### Settings
139
+
140
+ ```bash
141
+ # Show current settings
142
+ btcemail settings # or: btcemail settings show
143
+
144
+ # Set email price in sats
145
+ btcemail settings pricing 100
146
+
147
+ # Toggle payment requirement
148
+ btcemail settings require-payment on
149
+ btcemail settings require-payment off
150
+
151
+ # Toggle auto-whitelist after payment
152
+ btcemail settings auto-whitelist on
153
+ btcemail settings auto-whitelist off
154
+
155
+ # Set custom auto-reply message
156
+ btcemail settings auto-reply "Thanks for your email!"
157
+ btcemail settings auto-reply --clear # Reset to default
158
+ ```
159
+
160
+ ### Whitelist
161
+
162
+ Manage senders who can email you for free.
163
+
164
+ ```bash
165
+ # List whitelist entries
166
+ btcemail whitelist # or: btcemail wl
167
+
168
+ # Add email or domain
169
+ btcemail whitelist add friend@example.com
170
+ btcemail whitelist add @company.com --note "Work contacts"
171
+
172
+ # Remove entry by ID
173
+ btcemail whitelist remove <entry-id>
174
+ ```
175
+
176
+ ### Blocklist
177
+
178
+ Manage blocked senders (silently rejected).
179
+
180
+ ```bash
181
+ # List blocklist entries
182
+ btcemail blocklist # or: btcemail bl
183
+
184
+ # Add email or domain
185
+ btcemail blocklist add spammer@example.com
186
+ btcemail blocklist add @spam.com --reason "Known spam domain"
187
+
188
+ # Remove entry by ID
189
+ btcemail blocklist remove <entry-id>
190
+ ```
191
+
192
+ ### Network
193
+
194
+ Switch between testnet and mainnet Lightning networks.
195
+
196
+ ```bash
197
+ # Show current network mode
198
+ btcemail network
199
+
200
+ # Switch to testnet (fake Bitcoin)
201
+ btcemail network testnet
202
+
203
+ # Switch to mainnet (real Bitcoin)
204
+ btcemail network mainnet
205
+ ```
206
+
207
+ ### Stats
208
+
209
+ ```bash
210
+ # Show dashboard statistics
211
+ btcemail stats
212
+ ```
213
+
108
214
  ## Options Reference
109
215
 
110
216
  ### list
@@ -231,7 +337,8 @@ bun run typecheck
231
337
 
232
338
  ## Requirements
233
339
 
234
- - Node.js 18 or later
340
+ - Pre-built binary: No runtime required (standalone executable)
341
+ - npm/bun install: Node.js 18 or later
235
342
  - An active btc.email account
236
343
 
237
344
  ## License