@spacelr/cli 0.1.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 ADDED
@@ -0,0 +1,64 @@
1
+ # @spacelr/cli
2
+
3
+ > **Note:** Spacelr is currently under active development. APIs may change between releases.
4
+
5
+ CLI tool for the Spacelr platform — deploy hosting sites and manage databases.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install -g @spacelr/cli
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```bash
16
+ spacelr <command> [options]
17
+ ```
18
+
19
+ ### Global Options
20
+
21
+ | Option | Description |
22
+ | --- | --- |
23
+ | `--api-url <url>` | Override API URL |
24
+ | `--token <token>` | Explicit auth token (CI mode) |
25
+ | `--json` | Output as JSON |
26
+ | `--verbose` | Verbose logging |
27
+
28
+ ### Commands
29
+
30
+ | Command | Description |
31
+ | --- | --- |
32
+ | `login` | Authenticate with the Spacelr platform |
33
+ | `logout` | Remove stored credentials |
34
+ | `whoami` | Show current user info |
35
+ | `projects` | List available projects |
36
+ | `use` | Select the active project |
37
+ | `init` | Initialize a new project in the current directory |
38
+ | `deploy` | Deploy a hosting site |
39
+ | `db rules-deploy` | Deploy database rules |
40
+ | `db rules-pull` | Pull database rules |
41
+ | `db indexes-deploy` | Deploy database indexes |
42
+ | `db indexes-pull` | Pull database indexes |
43
+
44
+ ## Quick Start
45
+
46
+ ```bash
47
+ # Login to your account
48
+ spacelr login
49
+
50
+ # Select a project
51
+ spacelr use
52
+
53
+ # Initialize and deploy
54
+ spacelr init
55
+ spacelr deploy
56
+ ```
57
+
58
+ ## Requirements
59
+
60
+ - Node.js >= 18
61
+
62
+ ## License
63
+
64
+ MIT