Skip to content

pwittchen/mikrus-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mikrus-cli Rust

mikrus VPS CLI written in Rust

Installation

Prerequisites

  • Rust toolchain (1.85+) — install via rustup:
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

From source

git clone https://github.com/pwittchen/mikrus-cli.git
cd mikrus-cli
cargo install --path .

From GitHub directly

cargo install --git https://github.com/pwittchen/mikrus-cli.git

The binary will be installed to ~/.cargo/bin/mikrus.

Uninstallation

cargo uninstall mikrus-cli

Configuration

Set your credentials via environment variables or pass them as flags:

export MIKRUS_SRV=srv12345
export MIKRUS_KEY=your-api-key

Or use --srv and --key flags with each command.

Usage

mikrus [--srv <SRV>] [--key <KEY>] <COMMAND>

Commands

Command Description
info Show server information
servers List all user servers
restart Restart the server
logs [ID] Show log entries (optional: specific log ID)
amfetamina Performance boost
db Show database credentials
exec <CMD> Execute a command on the server
stats [--truncate <WIDTH>] Show disk/memory/uptime statistics (truncate long lines at WIDTH, adding "..."; 0 = no truncation)
ports Show TCP/UDP ports
cloud Show cloud services & stats
domain <PORT> <DOMAIN> Assign domain to server
config Show current configuration (MIKRUS_SRV and MIKRUS_KEY)

Building

cargo build --verbose
cargo test --verbose
cargo run

API docs

https://api.mikr.us/

About

mikrus VPS CLI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages