πΈ Cherry CLI Documentation
Beautiful CLI for Cherry Servers Management
πΈ Core Commands
π cherry init
cherry init # Initialize configuration
cherry init --token YOUR_TOKEN # Set API token during init
βοΈ cherry config
cherry config get project-id # Get current project ID
cherry config set project-id 123 # Set project ID
π€ cherry user
cherry user # Show user info
cherry user --json # JSON output
π₯οΈ Server Commands
π cherry servers
cherry servers # List all servers
cherry servers --json # JSON format
βΉοΈ cherry server info
cherry server info my-server # Server details by name
cherry server info 12345 # Server details by ID
π― cherry server activate
cherry server activate my-server # Set server as active/primary
cherry server activate 12345 # Activate by server ID
π‘ Pro Tip: Many commands use the active server when no server is specified, making workflows more efficient.
π cherry discover
cherry discover # Refresh all resource cache
cherry discover --servers # Refresh servers only
π Security & Transfer
π± Enterprise-Grade Security Pipeline
Cherry CLI implements military-grade encryption for all file transfers and CLI distribution.
π± cherry plant
cherry plant my-server # Securely install CLI on server
cherry plant # Show available servers
π‘ cherry send
cherry send file.txt server # Encrypted file transfer
cherry send ./project/ server # Encrypted directory transfer
π€ cherry upload
cherry upload server file.txt # Basic file upload
cherry upload server file.txt /path # Upload to specific path
π SSH & Access
π cherry ssh-key
cherry ssh-key add ~/.ssh/id_rsa.pub # Add SSH key
cherry ssh-key list # List all keys
cherry ssh-key delete key-name # Delete key
π cherry ssh
cherry ssh my-server # Connect via SSH
cherry ssh my-server root # Connect as specific user
π€ cherry server users
cherry server users list # List users on active server
cherry server users list my-server # List users on specific server
cherry server users add alice # Add user to active server
cherry server users add bob --sudo # Add user with sudo access
π Automatic SSH Setup: Creates user home directory, .ssh folder with proper permissions, and automatically adds your local SSH key for immediate access.
π Mesh Network
π§ cherry mesh setup
cherry mesh setup # Initialize mesh network
cherry mesh setup --force # Force reinitialize
πΊοΈ cherry mesh nodes
cherry mesh nodes # Show all mesh nodes
cherry mesh topology # Network topology view
π‘ cherry mesh send
cherry mesh send file.txt target # Mesh file transfer
cherry mesh exec 'ls -la' target # Execute command via mesh
β‘ Advanced Operations
π cherry deploy
cherry deploy ./app --server my-server --domain app.com
cherry deploy --static ./dist --server web-server
π cherry monitor
cherry monitor my-server # System monitoring
cherry monitor my-server --realtime # Real-time monitoring
πΎ cherry backup
cherry backup my-server /data # Backup directory
cherry backup my-server /data --compress # Compressed backup
π cherry audit
cherry audit my-server # Security audit
cherry audit my-server --detailed # Detailed audit report