2 min Devops

Serverless Framework 3.0 released with “stage parameters”

Serverless Framework 3.0 released with “stage parameters”

The new feature is particularly useful when deploying services to multiple environments.

This week the Serverless Framework project released version 3.0 of the project, which introduces stage parameters and a new CLI design. The Serverless Framework is a MIT-licensed command line tool first shared in 2015. It was developed to help users build and deploy web, mobile, and IoT applications on a variety of cloud services.

Severless product manager Matthieu Napoli described the new features in a blog post. He says that the new CLI design had become necessary since the growing number of deprecations, plugins, and cloud resources left the tool’s output rather noisy. The reworked CLI therefore looks to “focus on actionable information”, as he says. This means less output that is in a better format, with cleaner logs, and clearer error messages. 

Reimagining the product interface

“Serverless Framework v3 is the framework you know and love, with a reimagined interface,” Napoli writes. “We started from scratch and asked ourselves: “as a user, what do I need to know?” at each step of each command.

According to Napoli, the new design focuses on actionable information and removes all extra noise. It is also “easier on the eyes with minimalistic colors and styles.”

Another major enhancement included in the update are stage parameters. The new addition allows the changing of a service configuration based on the current stage. For example, parameters can be changed to fit the stages of production, development, testing.

“This is particularly useful when deploying services to multiple environments, like a development/staging environment and a production environment,” he says.

Developers in need of some extra help to get started with serverless deployments will be interested to learn that running v3.0 of the framework in an empty directory will now start a guided, interactive set up process for serverless projects.

Support for setting up the serverless dashboard is also available and can be kicked off by running serverless in a project.