@spacelr/cli
v0.2.0
Published
CLI tool for the Spacelr platform - deploy hosting sites and manage databases
Maintainers
Readme
@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
