Licence
MIT
Version
0.2.1
Deps
5
Size
212 kB
Vulns
0
Weekly
30
@spacelr/cli
Note: Spacelr is currently under active development. APIs may change between releases.
CLI tool for the Spacelr platform — deploy hosting sites and manage databases.
Installation
npm install -g @spacelr/cliUsage
spacelr <command> [options]Global Options
| Option | Description |
|---|---|
--api-url <url> |
Override API URL |
--token <token> |
Explicit auth token (CI mode) |
--json |
Output as JSON |
--verbose |
Verbose logging |
Commands
| Command | Description |
|---|---|
login |
Authenticate with the Spacelr platform |
logout |
Remove stored credentials |
whoami |
Show current user info |
projects |
List available projects |
use |
Select the active project |
init |
Initialize a new project in the current directory |
deploy |
Deploy a hosting site |
db rules-deploy |
Deploy database rules |
db rules-pull |
Pull database rules |
db indexes-deploy |
Deploy database indexes |
db indexes-pull |
Pull database indexes |
Quick Start
# Login to your account
spacelr login
# Select a project
spacelr use
# Initialize and deploy
spacelr init
spacelr deployRequirements
- Node.js >= 18
License
MIT