mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
1.4 KiB
1.4 KiB
Read this on the main serverless docs site
Knative - deploy
The serverless deploy command deploys your entire service.
serverless deploy
Options
--configor-cName of your configuration file, if other thanserverless.yml|.yaml|.js|.json.--stageor-sThe stage in your service that you want to deploy to.
Artifacts
After the serverless deploy command runs, the Framework runs serverless package in the background first then deploys the service. During the deployment, the Framework creates a Kubernetes namespace (called sls-{service}-{stage}) which is used to host all your Kubernetes / Knative resources.
Examples
Deployment without stage options
serverless deploy
This is the simplest deployment usage possible. With this command Serverless will deploy your service to the defined
provider in the default stage (dev).
Deployment with stage option
serverless deploy --stage prod
With this example we've defined that we want our service to be deployed to the prod stage.