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
| Argument | Description | Required |
|---|---|---|
deployment-id | ID of the deployment to stop | Yes |
How It Works
When you run tly stop:
- Targetly sends a stop signal to the Docker container
- The container gracefully shuts down
- The deployment status changes to "stopped"
- 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
Related Commands
-
tly start Wake a stopped deployment
-
tly list View all deployments
-
tly logs Check logs before stopping