4d-run
4D Method Runner
Run a 4D project method with the right runtime.
Choose the Runtime First
- Use
tool4dfor most test-like runs, especially when--datalessis acceptable. - If it is unclear whether the method needs the full runtime, try
tool4dfirst. If that run fails for reasons that look specific totool4dor missing database/runtime support, then switch to the full 4D runtime. - Use the full 4D runtime when the method depends on a real data file, database state, UI/runtime features missing from
tool4d, or the user explicitly saystool4dis insufficient. - Do not try to discover the 4D runtime automatically. Ask the user for the path to
4D.app, the inner4Dbinary, or4D.exe.
Prefer this fallback strategy because it is usually faster than deciding up front from incomplete context.
Finding tool4d
tool4d can be located in two ways:
1. Environment Variable
More from e-marchand/skills
4d-check-syntax
Check syntax and compile a 4D project to find errors and type issues. Use this skill when the user wants to compile, check syntax, or validate a 4D project. Creates a _compile method if not present, then runs it using tool4d. Returns compilation errors in JSON format for easy parsing.
114d-find-command
Find 4D commands by keyword. Use this skill when the user wants to search for, find, or discover 4D commands matching a term. Searches the gram.4dsyntax file from tool4d.app to list matching command names and uses bundled syntax metadata for readable signatures and summaries. Filters out deprecated commands.
94d-clean-project
Clean a 4D project by removing generated files, caches, and system artifacts.
64d-publish-github
Publish a 4D project to GitHub using gh CLI. Use this skill when the user wants to publish, push, or share a 4D project to GitHub. Creates remote repository, initializes git, adds CI/CD workflows for building and releasing. Supports release-on-tag or release-on-create workflows.
64d-add-dependency
Add dependencies to a 4D project. Use when the user wants to add a component, library, or dependency to their 4D project. Supports GitHub repos (owner/repo format), GitHub URLs (with automatic tag extraction from release URLs), and local folder paths. Handles dependencies.json and environment4d.json configuration.
64d-create-project
Create a new 4D project from scratch. Use this skill when the user wants to initialize, create, or start a new 4D project. Creates the required folder structure and .4DProject configuration file.
6