RustyBase CLI & Initialization
Complete guide to setting up and managing your RustyBase instance. From installation to advanced system management.
1. Installation
RustyBase provides an automated installer for Unix-based systems (macOS & Linux) and Windows.
macOS & Linux (Shell)
Run the following command in your terminal to download and install the latest binary:
1curl -fsSL https://raw.githubusercontent.com/diptanshumahish/rustybase-release/master/install.sh | bash- Detects your OS and Architecture (x86_64 or arm64).
- Fetches the latest release metadata from GitHub.
- Downloads the appropriate binary to a temporary location.
- Installs it to
/usr/local/bin/rustybase(may request sudo).
Windows (PowerShell)
Run this command in an Administrator PowerShell window:
1irm https://raw.githubusercontent.com/diptanshumahish/rustybase-release/master/install.ps1 | iex2. Initialization (init)
Before you can run the server, you must initialize a data directory and create your admin credentials.
1rustybase initOptional: rustybase init --path ./my-custom-data (Default is ./data)
Interactive Wizard Steps
The init command launches an interactive setup wizard:
Admin Username
The username for the root superuser. Default: admin.
Admin Password
Hidden input. Do not lose this! Full system control.
Initial Database
Name of the first database. Default: default.
Shard Key Strategy
Distribution strategy. '_id' recommended.
Server Port
HTTP port for API. Default: 3000.
Server Host
Bind address. Default: 127.0.0.1.
rustybase.config.json, and print your Connection String.3. Starting the Server (serve)
Once initialized, you are ready to launch the database engine.
1rustybase serveStartup Sequence
- Banner: Displays the RustyBase ASCII logo.
- Initialization: Loads storage engine and auth service.
- Port Check: Verifies configured port availability.
- Network Summary: Link to Swagger UI, API endpoints, and Auth protocols.
The server is now live. Press Ctrl+C to stop safely.
4. System Management
Built-in utilities to manage the system without starting the server.
List Users
View all registered users and their roles.
Resource Usage
Check CPU load, Memory RSS, Storage volume, and file paths.
Port & Network
Quickly check configured port/host.
View Subscription
Check your current licensing status (Free/Pro).
5. Danger Zone
System Reset
Wipes ALL data (databases, users, documents) but keeps configuration. Useful for dev resets.
1rustybase --resetUninstall
Completely removes RustyBase (binary, config, data) from your system.
1rustybase --uninstall6. Reference: Command Summary
| Command | Description |
|---|---|
| rustybase init | Initialize a new database instance (Wizard). |
| rustybase serve | Start the API server. |
| rustybase users | List all system users. |
| rustybase usage | Show CPU, RAM, and Disk usage. |
| rustybase port | Show configured port/host. |
| rustybase whichplan | Show current subscription tier. |
| rustybase --help | Show the official help menu. |
| rustybase --version | Show the installed version. |
| rustybase --reset | [DESTRUCTIVE] Delete all data. |
| rustybase --uninstall | [DESTRUCTIVE] Remove RustyBase entirely. |