Packages
Nuvolaris groups actions and feeds in packages under a namespace. It is conceptually similar to a folder containing a group of related files.
A package allows you to:
-
Group related actions together.
-
Share parameters and annotations (each action sees the parameters assigned to the package).
-
Provide web actions with a common prefix in the URL to invoke them.
For example, we can create a package demo-package
and assign a parameter:
$ nuv package create demo-package -p email no-reply@nuvolaris.io
ok: created package demo-package
This command creates a new package with the specified name.
Package Creation, Update, and Deletion
Let’s proceed with the commands to list, get information, update, and finally delete a package:
First, let’s list our packages:
$ nuv package list
packages
/nuvolaris/demo-package/ private
If you want to update a package by adding a parameter:
$ nuv package update demo-package -p email info@nuvolaris.io
ok: updated package demo-package
Let’s retrieve some package information:
$ nuv package get demo-package -s
package /nuvolaris/demo-package/sample:
(parameters: *email)
Note the final -s
, which means "summarize."
Finally, let’s delete a package:
$ nuv package delete demo-package
ok: deleted package demo-package