Skip to main content

tly stop

Overview

The tly stop command gracefully stops a running deployment, putting it to sleep to free up resources.

Usage

tly stop <deployment-id>

Arguments

ArgumentDescriptionRequired
deployment-idID of the deployment to stopYes

How It Works

When you run tly stop:

  1. Targetly sends a stop signal to the Docker container
  2. The container gracefully shuts down
  3. The deployment status changes to "stopped"
  4. Resources are freed on the VPS
info

The deployment URL remains reserved. Use tly start <id> to wake it up again.

Examples

Basic Usage

tly stop abc123def456

Output:

🛑 Stopping deployment abc123def456...
✓ Container stopped successfully

━━━━━━━━━━━━━━━━━━━━━━━━
📋 ID: abc123def456
📊 Status: Stopped
━━━━━━━━━━━━━━━━━━━━━━━━

When to Use

Use tly stop when you need to:

  • Free up resources on your VPS
  • Temporarily disable a deployment
  • Perform maintenance
warning

Stopping a deployment makes it inaccessible until you run tly start <id> again.

Auto-Idle Shutdown

Targetly automatically stops deployments after a period of inactivity. This helps:

  • 💰 Keep VPS costs low
  • 🎯 Optimize resource usage
  • ⚡ Prevent resource exhaustion

Default idle timeout: 15 minutes

  • tly start Wake a stopped deployment

  • tly list View all deployments

  • tly logs Check logs before stopping