stk create stackfile command creates a base file of a stackfile in the current directory.
How does it work?
The command creates a base file for you to use when developing a Stackfile. When executed, a
<name-stackfile>.yaml file will be created and you must edit it to define the Stack Template and Plugins composition.
Check the available options in the command:
|Defines the stackfile name.|
See an example of how to create the Stackfile file:
- Run in your terminal:
stk create stackfile name-of-your-stackfile
- Enter the description of your Stackfile:
? Description: Describe your stackfile here
- The return will be:
- Stackfile name-of-your-stackfile successfully created.
- The file
your-stackfile.yamlwill be created in the current directory:
description: Describe your stackfile explaining its purpose
- plugin: <stack-name>/<plugin-name>
- type: Indicates if the Stackfile can be used in a
stk create appcommand.
- description: Stackfile description that will be displayed in the command
stk list stackfile.
- template: Template to use to create the app in the
- inputs: Objects with the values of the inputs that will be passed to the Template. They are not required. If any input value defined in the Template is not entered, the user will be prompted for it.
- plugins: List of objects that indicate which Plugins are to be applied.
- plugin: Plugin to be applied in
- inputs: Objects with the values of the inputs that will be passed to the plugin. They are not required. If any input value defined in the template is not entered, the user will be prompted for it.
If you update the Template and/or Plugin used in the Stackfile, it is not necessary to delete and create a Stackfile again. The updates are loaded automatically, as long as the Template and Plugin keep the same name that you used before.
Command execution example
Was this page helpful?