docs/scf/cli-reference.md
The Serverless Container Framework (SCF) provides several CLI commands to manage your containerized applications. Here's a comprehensive guide to all available commands.
deployDeploy your containers and foundational infrastructure:
serverless deploy
--forceDisregard config/code change detection and deploy all containers and infrastructure. By default, SCF uses intelligent change detection to perform incremental deployments.
devStart a local development environment with hot-reloading and local AWS emulation:
serverless dev
infoDisplay information about your deployed container services:
serverless info
removeRemove deployed container services:
serverless remove
--allRemove 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.
--forceForce removal of all resources including shared infrastructure without confirmation. Useful for CI/CD pipelines.
These options can be used with any command:
--stageSpecify the stage to target (e.g., dev, staging, prod). Defaults to dev if not specified.
--debugEnable detailed debug logging. Useful for troubleshooting issues.
--aws-profileSpecify which AWS credentials profile to use. This overrides the default AWS profile.