Create Application via STK CLI
Overview
In StackSpot, an Application is any source code that implements business rules, code snippets such as classes, methods, library imports, or the code of a minimally functional Application.
Applications are developed within Workspaces, using tools such as Plugins, Stacks, Starters, or the available Workflows, which make the development and delivery of solutions faster and simpler.
In StackSpot, you can create Applications in two ways:
- STK CLI
- StackSpot EDP Portal
To create an Application, you must use a Stack and a Starter or a Workflow. Below, you will find a step-by-step guide to creating Applications using Workflows through the STK CLI.
Requirements
Before you begin, make sure you have:
- Access to a StackSpot Workspace.
- The STK CLI installed on your machine.
- Authentication configured with your StackSpot account.
- A Stack and Starter or Workflow available in your Workspace.
For more information on installing and configuring the STK CLI, read the STK CLI Installation Guide.
Step-by-Step: Creating an Application using Workflow with STK CLI
1. Access your Workspace
Open the terminal and navigate to the directory where you want to create the Application.
2. Authenticate with StackSpot
If you have not yet authenticated, run:
stk auth login
Follow the instructions to log in with your StackSpot account.
3. List Available Workflows
To view the available Workflows in your Workspace, use:
stk workflow list
Identify the name or ID of the Workflow you want to use.
4. Run the Workflow to Create the Application
Execute the Workflow with the following command:
stk workflow run <workflow-name>
Replace <workflow-name> with the actual name or ID of the Workflow.
You may be prompted to provide additional information, such as:
- Application name
- Description
- Other parameters required by the Workflow
Follow the terminal prompts to complete the process.
5. Verify Application Creation
After the Workflow execution, check that the Application was created in the specified directory.
You can now start developing your Application according to your project needs.
Next Steps
- Explore the files and folders generated by the Workflow.
- Customize and develop your business rules within your new Application.
- For more details on managing Applications, see the Application Management Guide.
Troubleshooting
If you encounter errors during the process, check:
- If your authentication is active and valid.
- If the Stack and Workflow exist and are accessible in your Workspace.
- If the STK CLI is updated to the latest version.
For further support, access the StackSpot Support Center.