Back to Serverless

Serverless Container Framework - CLI Reference

docs/scf/cli-reference.md

4.29.01.4 KB
Original Source

CLI Reference

The Serverless Container Framework (SCF) provides several CLI commands to manage your containerized applications. Here's a comprehensive guide to all available commands.

Commands

deploy

Deploy your containers and foundational infrastructure:

bash
serverless deploy

--force

Disregard config/code change detection and deploy all containers and infrastructure. By default, SCF uses intelligent change detection to perform incremental deployments.

dev

Start a local development environment with hot-reloading and local AWS emulation:

bash
serverless dev

info

Display information about your deployed container services:

bash
serverless info

remove

Remove deployed container services:

bash
serverless remove

--all

Remove all resources including shared infrastructure (e.g. VPC, ALB, ECS Cluster, etc.). Be careful when using this if some resources were created by other projects.

--force

Force removal of all resources including shared infrastructure without confirmation. Useful for CI/CD pipelines.

Global Options

These options can be used with any command:

--stage

Specify the stage to target (e.g., dev, staging, prod). Defaults to dev if not specified.

--debug

Enable detailed debug logging. Useful for troubleshooting issues.

--aws-profile

Specify which AWS credentials profile to use. This overrides the default AWS profile.