Back to Docs
Reference

CLI Reference

Manage Grid from your terminal using the cn CLI.

Installation

npm install -g grid-cli

Commands

  • cn login — Authenticate with your Grid instance
  • cn deploy — Deploy the current directory
  • cn logs — View runtime logs for a service
  • cn ssh — SSH into a running container

Server Management Commands

These commands require SSH access to the Grid server itself:

# Install / Update
sudo bash /opt/smsly-hosting/install.sh --update

# Check container status
docker compose -f /opt/smsly-hosting/docker-compose.prod.yml ps

# View logs
docker compose -f /opt/smsly-hosting/docker-compose.prod.yml logs -f backend

See the Installation Guide for detailed server management instructions.