--lang <language>: Set interface language (en|zh-CN)- Automatically detects system language if not specified
- Affects all command descriptions, prompts, and log messages
- Can also be set via
NEXUS_LANGenvironment variable
Examples:
# Use English interface
nexus --lang en --help
# Use Chinese interface
nexus --lang zh-CN init
# Auto-detect from system (default)
nexus previewInitialize configuration file interactively.
Description: Auto-detect project framework and create configuration through interactive prompts.
Options:
--force: Overwrite existing configuration file without confirmation
Features:
- Automatic framework detection (Taro/uni-app)
- Multi-platform support (WeChat, Alipay, ByteDance, QQ)
- Optional .env file generation for sensitive data
- Automatic .gitignore updates
Build project and generate preview QR code.
Description: Build project using detected framework and generate preview QR code via platform CI. QR code is displayed both in terminal and saved as image file.
Options:
--mode <env>: Load.env.<env>file and setNODE_ENV--desc <text>: Version description (auto-fallback to latest Git commit message)--ver <x.y.z>: Version number (auto-fallback topackage.jsonversion)--config <path>: Custom configuration file path--dry-run: Print planned steps without calling platform CI--verbose: Output detailed logs and debug information--json: Output structured JSON format results
Build project and upload as new version.
Description: Build project using detected framework and upload to platform as new version.
Options: Same as preview command
0: Success1: Unknown error2: Invalid arguments3-4: Configuration errors20-22: File system errors40-42: Network/API errors60-62: Build errors80-82: Deployment errors100-102: Platform-specific errors (WeApp)
🎉 Preview completed successfully!
📦 Framework: taro
🎯 Platform: weapp
🏷️ Version: 1.0.0
📝 Description: feat: add new feature
📱 QR code saved: ./preview-qrcode.png
{
"success": true,
"timestamp": "2025-01-01T00:00:00.000Z",
"operation": "preview",
"data": {
"success": true,
"qrcodeImagePath": "./preview-qrcode.png"
},
"metadata": {
"framework": "taro",
"platform": "weapp",
"version": "1.0.0",
"description": "feat: add new feature"
}
}# Initialize configuration
nexus init
# Preview with auto-detected settings
nexus preview
# Deploy with specific version
nexus deploy --ver 1.2.3 --desc "Release version 1.2.3"# Preview with environment mode
nexus preview --mode development --verbose
# Deploy with JSON output for CI/CD
nexus deploy --json --mode production
# Dry run to check configuration
nexus preview --dry-run --verbose# GitHub Actions example
nexus deploy --json --mode production --desc "$GITHUB_SHA" > deploy-result.json- CLI options (highest priority)
- Environment variables from
.env.<mode>file - Environment variables from
.envfile - Configuration file values
- Default values (lowest priority)
- Framework Detection: Automatically detects Taro or uni-app projects
- Git Integration: Uses latest commit message as default description
- Version Detection: Uses package.json version as default version number
- Output Path: Automatically determines build output directory