Quick Start
Quick Start
Quick Start
Install
git clone https://github.com/variableway/spark-cli.git
cd spark-cli
make build
make build compiles the binary and installs it to ~/.local/bin/spark. Make sure that directory is on your $PATH.
Configure
Create ~/.spark.yaml:
repo-path:
- ~/workspace
git:
username: your-name
email: your@email.com
Common Commands
Git Repository Management
spark git update -p ~/workspace # Update all repositories
spark git update -p ~/workspace --ssh # Force SSH when HTTPS is unstable
spark hub registry scan ~/workspace # Scan a references directory into a registry
spark git batch-clone variableway -o ./repos # Clone all repos for an org
spark git push-all -p ~/workspace # Commit and push every repo
spark git scan ~/workspace # Scan repos and persist to SQLite
Mirror Switching
spark magic pip use tsinghua # Python → Tsinghua mirror
spark magic go use goproxy # Go → goproxy.cn
spark magic node use taobao # Node → Taobao mirror
spark magic clean # Clean node_modules and .venv
Documentation
spark docs init # Create the docs structure
spark docs site # Initialize a docmd site
docmd dev # Preview docs locally
Process Diagnostics
spark witr nginx # Inspect the nginx process
spark witr --port 8080 # Find what is bound to port 8080
spark witr --pid 1234 # Inspect a process by PID