Deployments

Deployments are specific builds and releases of your Git Deploy projects. Each deployment is tied to a specific Git commit.

List Deployments

teenode deployment list proj_abc123

Limit results:

teenode deployment list proj_abc123 --limit 5

Create Deployment

teenode deployment create proj_abc123 \
  --commit-sha abc123 \
  --commit-message "Fix bug" \
  --branch main

Deployment Status

  • QUEUED - Waiting in the build queue
  • BUILDING - Docker image is being built
  • DEPLOYING - Built image is being deployed
  • ACTIVE - Deployment is live and serving requests
  • FAILED - Build or deployment failed
  • CANCELED - Deployment was manually canceled

Get Deployment Details

teenode deployment info dep_xyz789

With logs:

teenode deployment info dep_xyz789 --logs

View Deployment Logs

teenode deployment logs dep_xyz789

Last 50 lines:

teenode deployment logs dep_xyz789 --lines 50

Follow logs in real-time (coming soon):

teenode deployment logs dep_xyz789 --follow
Real-time log following is coming in a future release.

Examples

View All Deployments

$ teenode deployment list proj_abc123
┌──────────────────┬──────────┬──────────────┬──────────────────┬──────────┐
 ID Status Commit SHA Branch Created
├──────────────────┼──────────┼──────────────┼──────────────────┼──────────┤
 dep_xyz789 ACTIVE abc123def main 5m ago
 dep_uvw456 FAILED abc111def develop 2h ago
└──────────────────┴──────────┴──────────────┴──────────────────┴──────────┘

Create and Monitor Deployment

$ teenode deployment create proj_abc123 --commit-sha abc123
 Deployment created: dep_xyz789
 Status: QUEUED

$ teenode deployment logs dep_xyz789 --follow
Building Docker image...
FROM node:18-alpine
WORKDIR /app
COPY . .
RUN npm install
...
 Build complete
 Deployment successful: https://my-app.teenode.com

Related Commands

    Deployments - Teenode CLI Documentation