Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.02 KB

File metadata and controls

47 lines (34 loc) · 1.02 KB

MirrorStack CLI

Official command-line tool for the MirrorStack platform.

Install

cargo install --git https://github.com/mirrorstack-ai/mirrorstack-cli

Pre-built releases (brew, scoop, deb) coming with the next milestone.

Commands

mirrorstack login           # Sign in via OAuth (PKCE)
mirrorstack logout          # Revoke the current session and wipe local credentials
mirrorstack whoami          # Print the currently signed-in user
mirrorstack module init     # Register a new module on the platform
mirrorstack --help          # Show help
mirrorstack --version       # Show CLI version

Local development

Build:

cargo build
cargo test

Run against local services. Easiest is a .env file in the project root — copy .env.example and edit:

cp .env.example .env
cargo run -- login

Or set the env vars per-invocation (these always win over .env):

MIRRORSTACK_API_URL=http://localhost:8081 \
MIRRORSTACK_WEB_URL=http://localhost:3000 \
cargo run -- login