axiodb 16.2.0 → 16.2.1
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 +74 -0
- package/cli/VERSION +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
- [Simple: connect without authentication](#simple-connect-without-authentication)
|
|
31
31
|
- [Advanced: TCP authentication](#advanced-tcp-authentication)
|
|
32
32
|
- [Advanced: TLS encryption](#advanced-tls-encryption)
|
|
33
|
+
- [AxioDB CLI — Command Line Interface](#-axiodb-cli--command-line-interface)
|
|
33
34
|
- [Troubleshooting](#-troubleshooting)
|
|
34
35
|
- [Docker Deployment](#-docker-deployment)
|
|
35
36
|
- [Simple: run the container](#simple-run-the-container)
|
|
@@ -338,6 +339,79 @@ The rule: the `-e AXIODB_TLS_CERT_PATH=...` value must always match the *right-h
|
|
|
338
339
|
|
|
339
340
|
---
|
|
340
341
|
|
|
342
|
+
## 💻 AxioDB CLI — Command Line Interface
|
|
343
|
+
|
|
344
|
+
A Go-based CLI tool for interacting with AxioDB servers via the TCP protocol. Supports all database operations with both single-command and interactive REPL modes.
|
|
345
|
+
|
|
346
|
+
### Quick Install
|
|
347
|
+
|
|
348
|
+
**Linux/macOS:**
|
|
349
|
+
```bash
|
|
350
|
+
curl -fsSL https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.sh | bash
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
**Windows (PowerShell):**
|
|
354
|
+
```powershell
|
|
355
|
+
irm https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.ps1 | iex
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
**Or download directly:** [GitHub Releases](https://github.com/nexoral/AxioDB/releases?q=cli-v&expanded=true)
|
|
359
|
+
|
|
360
|
+
### Supported Platforms
|
|
361
|
+
|
|
362
|
+
| OS | Architectures |
|
|
363
|
+
|------|--------------|
|
|
364
|
+
| Linux | amd64, arm64, 386, armv7 |
|
|
365
|
+
| macOS | amd64 (Intel), arm64 (Apple Silicon) |
|
|
366
|
+
| Windows | amd64, arm64, 386 |
|
|
367
|
+
| FreeBSD | amd64 |
|
|
368
|
+
| OpenBSD | amd64 |
|
|
369
|
+
| NetBSD | amd64 |
|
|
370
|
+
|
|
371
|
+
### Usage
|
|
372
|
+
|
|
373
|
+
**Single commands:**
|
|
374
|
+
```bash
|
|
375
|
+
axiodb -c axiodb://127.0.0.1:27019 ping
|
|
376
|
+
axiodb -c axiodb://127.0.0.1:27019 db list
|
|
377
|
+
axiodb -c axiodb://127.0.0.1:27019 document insert '{"name":"Alice"}' --db mydb --collection users
|
|
378
|
+
axiodb -c axiodb://127.0.0.1:27019 document query '{}' --db mydb --collection users
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
**Interactive REPL (MongoDB shell style):**
|
|
382
|
+
```bash
|
|
383
|
+
axiodb connect
|
|
384
|
+
# axiodb> use mydb
|
|
385
|
+
# axiodb:mydb> show collections
|
|
386
|
+
# axiodb:mydb> use mydb.users
|
|
387
|
+
# axiodb:mydb:users> db.users.find({})
|
|
388
|
+
# axiodb:mydb:users> db.users.insert({name: "Bob"})
|
|
389
|
+
# axiodb:mydb:users> exit
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
**With authentication:**
|
|
393
|
+
```bash
|
|
394
|
+
axiodb -c axiodb://127.0.0.1:27019 -u admin -p admin connect
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
**With TLS:**
|
|
398
|
+
```bash
|
|
399
|
+
axiodb -c axiodb://127.0.0.1:27019 --tls --tls-cert ./cert.pem connect
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
### Features
|
|
403
|
+
|
|
404
|
+
- **All 21 TCP commands:** database, collection, document CRUD, aggregation, indexing
|
|
405
|
+
- **Interactive REPL:** MongoDB shell syntax (`use`, `show dbs`, `db.coll.find()`)
|
|
406
|
+
- **TLS support:** `--tls`, `--tls-cert`, `--tls-skip-verify`
|
|
407
|
+
- **Auth support:** `-u` / `-p` flags
|
|
408
|
+
- **JSON output:** `--output json` for scripting
|
|
409
|
+
- **Tab autocomplete** in REPL mode
|
|
410
|
+
|
|
411
|
+
👉 **[Full CLI Documentation](https://github.com/nexoral/AxioDB/tree/main/cli)**
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
341
415
|
## 🔧 Troubleshooting
|
|
342
416
|
|
|
343
417
|
### "Not connected to server" right after calling `connect()`
|
package/cli/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
16.2.
|
|
1
|
+
16.2.1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axiodb",
|
|
3
|
-
"version": "16.2.
|
|
3
|
+
"version": "16.2.1",
|
|
4
4
|
"description": "The Pure JavaScript Alternative to SQLite. Embedded NoSQL database for Node.js with MongoDB-style queries, zero native dependencies, built-in InMemoryCache, and web GUI. Perfect for desktop apps, CLI tools, and embedded systems. No compilation, no platform issues—pure JavaScript from npm install to production.",
|
|
5
5
|
"main": "./lib/config/DB.js",
|
|
6
6
|
"types": "./lib/config/DB.d.ts",
|