Action reference
Explore all available template actions.
Looking for something specific?
Use the search bar at the top of the page or press / to quickly search through the documentation.
Use the summary below to quickly jump to a specific topic:
| Page | Description |
|---|---|
| add-component | Learn how to install components into a project. |
| add-dependency | Learn how to add packages to a project. |
| add-slot | Learn how to add slots to a project. |
| change-directory | Learn how to change the working directory. |
| check-dependency | Learn how to check if packages are installed. |
| create-api-key | Learn how to create an API key. |
| create-directory | Learn how to create a directory. |
| create-resource | Learn how to create Croct resources. |
| define | Learn how to set variables in the current scope. |
| delete-path | Learn how to delete files or directories. |
| download | Learn how to download files from the template source. |
| execute-package | Learn how to run a package command. |
| fail | Learn how to terminate execution with an error. |
| format-code | Learn how to format code files. |
| import | Learn how to import and execute another template. |
| install | Learn how to install project dependencies. |
| integrate-croct | Learn how to set up Croct in a project. |
| locate-path | Learn how to find files matching a pattern. |
| move-path | Learn how to move or rename files and directories. |
| open-link | Learn how to open a URL in the browser. |
| Learn how to display messages in the terminal. | |
| prompt | Learn how to request input from the user. |
| read-file | Learn how to read file content into a variable. |
| repeat | Learn how to execute actions in a loop. |
| replace-file-content | Learn how to replace content in files using patterns. |
| resolve-import | Learn how to resolve import paths in source files. |
| run | Learn how to execute actions sequentially. |
| start-server | Learn how to start a development server. |
| stop-server | Learn how to stop a running server. |
| test | Learn how to execute actions conditionally. |
| try | Learn how to handle errors in template execution. |
| write-file | Learn how to write content to a file. |