stk create stack command creates a repository for the Template and Plugin Stack.
How does it work?
The command allows you to create an empty repository for the Stack, where you can add Templates and Plugins.
Check the available options in the command:
|Sets the name of the created stack. If the name is not given, the repository name from the |
|This parameter defines the Git's repository remote URL that will be used as the origin for the Stack. If you do not enter remote, you must run |
Check out the example below on how to create your Stack:
- Run in your terminal:
stk create stack your-stack-name
- The return will be:
Creating stack your-stack-name
- Then run:
- Now you can add Plugins to your Stack with the
stk add plugincommand.
Add a Stackfile to a Stack
Creators can define Stackfiles and include them in the Stacks. It allows you to access them in a simplified way. There are two possibilities to do this:
stackfilesfolder in the repository created earlier by the
stk create stackcommand and place the Stackfile
yamlfile inside this folder;
stk create stackfile <name-stackfile>command in the
stackfilesfolder to create a default
When you publish this change to the Stack repository, the Stackfile will be available to use.
See an example of the layout of a repository with Stackfiles:
Was this page helpful?