Skip to main content

Starter Commands

In this section, you will learn more about the Starter's commands.


CommandDescription
stk create starterCreate a Stack's Starter with the STK CLI.
stk list starterLists all Starters within a Workspace.
stk validate starterValidate the Starter structure to be published within the Stack.

stk create starter

The stk create starter command creates a basic Starter structure. See how to create Starter in STK CLI.

tip

The -o, --target option allows you to define a different folder name to create the Starter content. If the folder does not exist, it will be created.

If you do not use the -o or --target option, the Starter content folder name will be the same as the one you gave when creating your Starter.

Usage

Syntax

stk create starter [NAME]

Example

stk create starter my-starter-name

Parameters

OptionDescriptionExample
-d, --descriptionYour Starter description.
stk create starter my-starter-name --description "My Starter description"
-r, --remoteGit URL to set as remote repository origin. In this case, the NAME will be defined as the Git repository name.
stk create starter my-starter-name --remote https://github.com/MyGitHubOrg/my-repository
-sgi, --skip-git-initIt will not start a Git repository.
stk create starter my-starter-name --skip-git-init
-q, --non-interactiveIt does not ask for missing inputs, returning an error when required inputs are not provided.
stk create starter my-starter-name --non-interactive
-o, --targetThe -o, --target option allows you to define a different folder name to create the Starter content. If the folder does not exist, it will be created. If you do not use the -o or --target option, the Starter content folder name will be the same as the one you gave when creating your Starter.
stk create starter my-starter-name --description "My Starter description" --target home/user/documents/my-stacks
-t, --typeThe Starter type: 'app'
stk create starter --type app
-h, --helpDisplays the command help and exits.
stk create starter --help

stk list starter

The stk list starter command lists the Starters available. You have two options:

  1. List Starters from a Workspace available to your account. In this case, you must be inside a Workspace. To do this, execute the command stk use workspace before listing the Starters.

  2. List Starters outside of a Workspace. After executing the command, you need to specify the Studio and the Stack you want.

You can access the Starter's name, type, and description. The system also notifies you if a Starter or content is deprecated with the "deprecated" tag.

Usage

stk list starter 

Parameters

OptionDescriptionExample
-stu, --studioFilters and displays the list of Starters by the Studio.
stk list starter --studio studio-name
-sta, --stackFilters and displays the list of Starters by Stack.
stk list starter --stack stack-name
-t, --type [app/infra]Filter Starters by type. Accepted values are 'app' or 'infra'.
stk list starter --type infra
-h, --helpDisplays the command help and exits.
stk list starter --help

stk validate starter

The stk validate starter command validate the structure of your Starter and it's components. The files ignored on your .gitignore will not be validated.

Usage

Syntax

stk validate starter

Example

Inside your Starter's Folder, run the following command:

stk validate starter

Parameters

OptionDescriptionExample
-v, --verboseShow validation with more details.
stk validate starter --verbose
-h, --helpDisplays the command help and exits.
stk validate starter --help