Last updated: 2019-12-04 17:18:27

    Read this on the main serverless docs site

    Tencent-SCF - Rollback

    Rollback a service to a specific deployment.

    serverless rollback --timestamp timestamp

    If timestamp is not specified, Framework will show your existing deployments.


    • --timestamp or -t The deployment you want to rollback to.
    • --verbose or -v Shows any history deployment.


    At first you want to run serverless deploy list to show your existing deployments. This will provide you with a list of the deployments stored in your COS bucket. You can then use the timestamp of one of these deployments to rollback to this specific deployment.


    $ sls deploy list
    Serverless: Listing deployments:
    Serverless: -------------
    Serverless: Timestamp: 1572625699
    Serverless: Datetime: 2019-11-01T16:28:19.896Z
    Serverless: Files:
    Serverless: - my-service-dev-1572625699.json
    Serverless: -
    Serverless: -------------
    Serverless: Timestamp: 1572350506
    Serverless: Datetime: 2019-10-29T12:01:46.816Z
    Serverless: Files:
    Serverless: - my-service-dev-1572350506.json
    Serverless: -
    $ sls rollback -t 1572625699
    Serverless: Rollback function my-service-dev-function_one
    Serverless: Rollback function my-service-dev-function_one
    Serverless: Rollback configure for function my-service-dev-function_one
    Serverless: Setting tags for function my-service-dev-function_one
    Serverless: Rollback trigger for function my-service-dev-function_one
    Serverless: Deployed function my-service-dev-function_one successful

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback