test-sight-cli
v1.0.11
Published
Sight AI Node CLI - A tool for running and managing the Sight AI node
Readme
Sight AI Miner CLI
A command-line tool for running and managing Sight AI mining software.
Features
- Support for local and remote operation modes
- Automatic GPU information detection
- Interactive and command-line parameter configuration
- Direct communication with Sight AI Miner API (port 8716)
- Cross-platform support (Windows, macOS, Linux)
Usage
Direct Run (Recommended)
npx @sight-ai/sight-cli run --mode localGlobal Installation (Optional)
npm install -g @sight-ai/sight-cli
sight-cli run --mode localPrerequisites
The following components are required to use this CLI tool:
- Ollama service running on port 11434
- Sight AI Miner service running on port 8716
Command Overview
sight-cli [command] [options]Commands
run: Connect to and interact with the mining softwareregister: Register device with gatewayre-register: Re-register device using saved parametersreport-models: Report available models to gatewaystatus: Check mining software status
Options
-m, --mode <mode>: Operation mode (local or remote)-g, --gateway-url <URL>: Gateway API URL (remote mode)-n, --node-code <code>: Node code (remote mode)-k, --gateway-api-key <key>: Gateway API key (remote mode)-r, --reward-address <address>: Reward address (remote mode)-a, --api-base-path <path>: API server base path (remote mode)-h, --help: Show help information-V, --version: Show version number
Running Examples
Interactive Mode
npx @sight-ai/sight-cli runLocal Mode
npx @sight-ai/sight-cli run --mode localRemote Mode
npx @sight-ai/sight-cli run --mode remote --gateway-url https://example.com --node-code ABC123 --gateway-api-key YOUR_KEY --reward-address YOUR_ADDRESS --api-base-path /apiHow It Works
- CLI tool detects if Ollama service is running on port 11434
- Pulls required AI models via Ollama
- Collects GPU information from the system
- Communicates with Sight AI Miner API on port 8716
- Registers device with gateway (remote mode)
- Reports available models to gateway
- Opens mining dashboard interface
Logs and Cache
- Log files are located in
.sightai/logsfolder in user's home directory - Cache files are located in
.sightai/cachefolder in user's home directory
Test CLI Locally
node bin/index.js run