@calimero-network/registry-cli 1.0.0 → 1.2.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
@@ -12,6 +12,7 @@ A command-line interface tool for the Calimero Network App Registry. Provides ea
12
12
  - **Configuration Management**: Persistent configuration storage
13
13
  - **Batch Operations**: Support for bulk operations
14
14
  - **Progress Indicators**: Visual progress bars for long operations
15
+ - **🆕 Local Registry**: Complete local development environment with file-based storage and artifact serving
15
16
 
16
17
  ## 📦 Installation
17
18
 
@@ -77,6 +78,65 @@ calimero-registry config set default-limit 20
77
78
  calimero-registry config set color-output true
78
79
  ```
79
80
 
81
+ ## 🏠 Local Registry for Development
82
+
83
+ The CLI now includes a complete local registry for development purposes. This allows you to test app submissions, manage applications, and serve artifacts locally without requiring a remote registry server.
84
+
85
+ ### Quick Start with Local Registry
86
+
87
+ ```bash
88
+ # Start local registry
89
+ calimero-registry local start
90
+
91
+ # Use local registry with existing commands
92
+ calimero-registry apps list --local
93
+ calimero-registry apps submit manifest.json --local
94
+ calimero-registry health --local
95
+
96
+ # Stop local registry
97
+ calimero-registry local stop
98
+ ```
99
+
100
+ ### Local Registry Management
101
+
102
+ ```bash
103
+ # Check status
104
+ calimero-registry local status
105
+
106
+ # Seed with sample data
107
+ calimero-registry local seed
108
+
109
+ # Reset all data
110
+ calimero-registry local reset --force
111
+
112
+ # Backup data
113
+ calimero-registry local backup
114
+
115
+ # Restore from backup
116
+ calimero-registry local restore backup.json
117
+ ```
118
+
119
+ ### Key Benefits
120
+
121
+ - **🔄 Offline Development**: Work without internet connection
122
+ - **⚡ Fast Iteration**: No network delays
123
+ - **📁 File-Based Storage**: No database required
124
+ - **🔧 Local Artifacts**: Serve files locally instead of IPFS
125
+ - **🛡️ Data Isolation**: Safe development without affecting production
126
+ - **👥 Team Collaboration**: Share local registry configurations
127
+
128
+ ### Local vs Remote Registry
129
+
130
+ | Feature | Remote Registry | Local Registry |
131
+ | ------------ | --------------- | -------------- |
132
+ | Storage | Database | JSON Files |
133
+ | Artifacts | IPFS | Local Files |
134
+ | Network | Required | Offline |
135
+ | Setup | Complex | Simple |
136
+ | Data Control | Limited | Full Control |
137
+
138
+ For detailed local registry documentation, see [LOCAL_REGISTRY.md](./LOCAL_REGISTRY.md).
139
+
80
140
  ## 📚 Command Reference
81
141
 
82
142
  ### Applications
@@ -95,6 +155,9 @@ calimero-registry apps list --output json
95
155
 
96
156
  # Show specific fields
97
157
  calimero-registry apps list --fields name,version,developer
158
+
159
+ # Use local registry
160
+ calimero-registry apps list --local
98
161
  ```
99
162
 
100
163
  #### Get Application Details
@@ -125,6 +188,9 @@ calimero-registry apps create \
125
188
  --description "A smart contract application" \
126
189
  --version "1.0.0" \
127
190
  --developer-id "developer-id"
191
+
192
+ # Submit to local registry
193
+ calimero-registry apps submit manifest.json --local
128
194
  ```
129
195
 
130
196
  #### Update Application
@@ -213,6 +279,40 @@ calimero-registry attestations create \
213
279
  --data '{"verified": true, "reason": "Security audit passed"}'
214
280
  ```
215
281
 
282
+ ### Local Registry Commands
283
+
284
+ #### Start/Stop Local Registry
285
+
286
+ ```bash
287
+ # Start local registry
288
+ calimero-registry local start
289
+
290
+ # Start on specific port
291
+ calimero-registry local start --port 8083
292
+
293
+ # Stop local registry
294
+ calimero-registry local stop
295
+
296
+ # Check status
297
+ calimero-registry local status
298
+ ```
299
+
300
+ #### Data Management
301
+
302
+ ```bash
303
+ # Seed with sample data
304
+ calimero-registry local seed
305
+
306
+ # Reset all data
307
+ calimero-registry local reset --force
308
+
309
+ # Backup data
310
+ calimero-registry local backup
311
+
312
+ # Restore from backup
313
+ calimero-registry local restore backup.json
314
+ ```
315
+
216
316
  ### Utility Commands
217
317
 
218
318
  #### Configuration
@@ -239,6 +339,9 @@ calimero-registry health
239
339
 
240
340
  # Detailed health check
241
341
  calimero-registry health --detailed
342
+
343
+ # Check local registry health
344
+ calimero-registry health --local
242
345
  ```
243
346
 
244
347
  ## 🎯 Usage Examples
@@ -274,6 +377,34 @@ calimero-registry attestations create \
274
377
  calimero-registry attestations list --app-id app-id
275
378
  ```
276
379
 
380
+ ### Local Development Workflow
381
+
382
+ ```bash
383
+ # 1. Start local registry
384
+ calimero-registry local start
385
+
386
+ # 2. Seed with sample data
387
+ calimero-registry local seed
388
+
389
+ # 3. List apps from local registry
390
+ calimero-registry apps list --local
391
+
392
+ # 4. Submit new app to local registry
393
+ calimero-registry apps submit my-manifest.json --local
394
+
395
+ # 5. Get app manifest from local registry
396
+ calimero-registry apps manifest my-app 1.0.0 --local
397
+
398
+ # 6. Check local registry health
399
+ calimero-registry health --local
400
+
401
+ # 7. Backup local data
402
+ calimero-registry local backup
403
+
404
+ # 8. Stop local registry
405
+ calimero-registry local stop
406
+ ```
407
+
277
408
  ### Batch Operations
278
409
 
279
410
  ```bash