tly start
Overview
The tly start command wakes a sleeping deployment and makes it active again, without requiring a full redeployment.
Usage
tly start <deployment-id>
Arguments
| Argument | Description | Required |
|---|---|---|
deployment-id | ID of the deployment to wake | Yes |
How It Works
Targetly automatically puts idle deployments to sleep to save resources. When you run tly start:
- Targetly starts the stopped Docker container
- The deployment becomes active at its original URL
- No rebuild or configuration changes needed
Unlike redeploying, tly start preserves the exact same container image and configuration from the original deployment.
Examples
Basic Usage
tly start abc123def456
Output:
🚀 Starting deployment abc123def456...
✓ Container started successfully
━━━━━━━━━━━━━━━━━━━━━━━━
📋 ID: abc123def456
🌐 URL: https://abc123def456.prod.targetly.io
📊 Status: Running
━━━━━━━━━━━━━━━━━━━━━━━━
Start and View Logs
tly start abc123def456 && tly logs abc123def456
When to Use
Use tly start when:
- ✅ Your deployment has automatically gone to sleep due to inactivity
- ✅ You manually stopped a deployment with
tly stop - ✅ You want to resume without making code changes
Don't use tly start when:
- ❌ You've made code changes (use
tly deployinstead) - ❌ You need to update environment variables (redeploy required)
- ❌ The deployment doesn't exist (deploy first)
Related Commands
-
tly stop Put a deployment to sleep
-
tly list See which deployments are sleeping
-
tly logs Monitor deployment after waking
Troubleshooting
Deployment not found
Error: Error: deployment abc123 not found
Solution: Use tly list to find the correct deployment ID.
Already running
Message: Deployment is already running
The deployment is already active. No action needed.
Start failed
Error: Failed to start container
Solutions:
- Check logs:
tly logs <deployment-id> - Redeploy if container is corrupted:
tly deploy