Skip to content

Reference: SimKit CLI

Note. This page is hand-written. A future doc-build step will auto-generate the canonical command list from simkit --help output and splice the hand-written notes (the per-command tips, common-error sections) into the right places. Until then this page is the maintained reference; cross-check against simkit <command> --help if anything looks off.

The SimKit CLI is the component developer's primary tool: scaffold, build, register, run, inspect. Distributed by SimScale through the SimKit Web UI's downloads page as a native installer per platform.

Authentication

simkit api-key set <YOUR_KEY>
simkit api-key clear               # if you ever need to reset

State lives in ~/.simkitrc.

Top-level groups

simkit autocomplete          # generate the shell completion script (bash, zsh, fish, PowerShell)
simkit api-key {...}         # manage the production API key
simkit component {...}       # component lifecycle: init, build, register, list, search, show, ...
simkit workflow {...}        # workflow lifecycle: list, read, validate, copy, migrate, ...
simkit run {...}             # workflow run lifecycle: start, track, pause, resume, cancel, ...
simkit data {...}            # data instance management: upload, download, info, copy
simkit export ...            # export components/data/workflows to a zip archive
simkit import <archive.zip>  # import an archive back
simkit generate-dsl <archive.zip>  # generate .kts scaffolds from an archive
simkit agent skill install   # install the workflow development skill for a coding agent

simkit -h lists everything; simkit <group> -h drills into a group; simkit <group> <command> -h shows the per-command options.

Exit codes

Code Meaning
0 The command succeeded
1 The command failed
3 The command succeeded but reported warnings — only with --exit-code-on-warnings

Warnings never change the exit code unless you ask for it: pass --exit-code-on-warnings to any command, or set the environment variable SIMKIT_EXIT_CODE_ON_WARNINGS=true. A notice that an advisory check could not run (for example "Dependency lifecycle check skipped") does not count as a warning here.

In GitLab CI, set the variable and let exit code 3 show the job as passed with warnings:

variables:
  SIMKIT_EXIT_CODE_ON_WARNINGS: "true"

build-components:
  script: simkit component build components/
  allow_failure:
    exit_codes: [3]

Without allow_failure, exit code 3 fails the job.

simkit component

Component lifecycle. The most-used group for component developers.

Command What it does
init <kind> <ref> Scaffold an <id>.<kind>.kts in cwd
build [<scripts/dirs>...] Build registry-ready envelopes from .kts source(s); auto-detects kind by extension
format [<paths>...] Format the Kotlin sources with ktlint; --check reports without modifying (CI mode)
test [<paths>...] Run the sibling *.<kind>.test.kts component tests — no services involved
register <envelope>... Post envelope(s) to the configured registry; transitively registers any missing dependencies
promote <snapshot-ref> Promote a snapshot to a release candidate
release <rc-ref> Release a release candidate to RELEASED
list List components with filters
search <query> Search the registry for groups and components by name and description; --component-type MATERIAL (or any other kind) restricts the results to one component kind, --data-type-role MATERIAL (any of a comma-separated list of roles; implies data types) to data types declaring a role, --states to lifecycle states
show <ref> Show a component, group, or version
dependencies <version-ref> [principal] The dependency tree of a version with the permission held and required on every member and the grant it comes from; judge another user with USER:<id>
documentation <version-ref> Show a component version's documentation: the table of contents, or one page as Markdown with --page <id>; --language <tag> picks a language
archive / unarchive <ref> Archive a group, a component, or a single version; unarchive restores the previous state
deprecate / undeprecate <ref> Soft-deprecate a component
suitable-materials <workflow-type> <slot-path> Materials suitable for a material slot of a workflow type version, with reasons. The slot path is the configuration path with * for list elements (/fluid, /materials/*/material); --states selects the material states to consider (default RELEASED), --all includes unsuitable materials
material-slots <material> Material slots of workflow type versions accepting a material version, with reasons; --states selects the workflow type states to consider (default SNAPSHOT,RELEASED)
register-group-hierarchy <yaml> Bulk-register component groups from YAML
group {...} Component-group management: register, update, upload icon
permission {...} Per-component / per-group permission management

simkit component init

simkit component init <data-type|method|workflow-type|material> <component_version_reference>

Creates <id>.<kind>.kts in the current directory. Filename uses snake-case from the kebab-case id; the component reference uses the original casing.

simkit component build

simkit component build [<script>|<dir>]...
  [-o, --output <dir>]               # default: each script's own directory
  [--dep-source FILE_SYSTEM,REGISTRY_SERVICE]  # default: both, in this order
  [-j, --parallelism <n>]            # default: number of CPU cores
  [--warnings-as-errors]             # fail on any warning or skipped lifecycle check

With no input, the single matching .kts in cwd is used. Multiple inputs are built in one JVM, parallel by default — saves the JVM + Kotlin-compiler startup per script.

--warnings-as-errors exits with 1 when the build reported a warning (for example a deprecated or archived dependency) or when a dependency lifecycle check could not run. The packages and the local repository entries are written before the checks run, so they exist either way.

Method scripts that declare a real codeGeneration.language also get their native data-model sources emitted — into the block's optional outputDirectory (relative to the script), or next to the script when unset. --skip-code-generation suppresses just that step.

simkit component format

simkit component format [<file>|<dir>]...
  [--check]   # report violations without modifying anything; non-zero exit on any hit

Formats the Kotlin sources of components — the .kts scripts, their test scripts, and sibling .kt utility sources — with ktlint's standard ruleset. Directories are walked recursively (*.gradle.kts, hidden directories, build directories, and src directories — the non-component-owned source trees, such as a method's native side — are skipped); with no input the current directory is walked. .editorconfig files in the source tree are honored.

By default violations are fixed in place and the command fails only when violations remain that no rule can auto-correct (for example over-long lines). --check modifies nothing and fails on any violation — the mode meant for CI gates.

simkit component test

simkit component test [<script>|<dir>]...
  [-j, --parallelism <n>]   # default: number of CPU cores
  [--junit-xml <file>]      # also write a JUnit-style XML report

Runs component test scripts (*.data-type.test.kts / *.method.test.kts / *.workflow-type.test.kts / *.material.test.kts) against the captured definition objects — no services involved, nothing published. With no input, every test script in cwd runs; directories are walked recursively. Non-zero exit when any case fails. See the component tests reference.

simkit component dependencies

simkit component dependencies <version-ref> [USER:<id> | <id>]

Prints the version and its transitive declared dependencies as an indented tree, every line with the permission level the judged user holds on that version, the level it requires (USE, or TEST for a snapshot) and the grant the held level comes from (via GROUP simscale.cad (PUBLIC), via DIRECT (USER:123), via CAPABILITY cad-premium (ORGANIZATION:…)). A line the user may not use is marked with ⚠ and nothing below it is listed: the name of a dependency is part of the component that declares it, its content is not. Above the tree, the verdict says whether the version is usable together with all of its dependencies, which is what creating or running a workflow on it requires.

Without a principal the tree is judged for you. With a user id it is judged for that user, which needs permission management rights on the component (a group permission on its group or an ancestor, or organization admin); the other user's component admin rights are not evaluated.

simkit component register

simkit component register <envelope>...
  [--dep-source FILE_SYSTEM,REGISTRY_SERVICE]

Walks the transitive dependency closure of each input envelope. Anything the target registry doesn't already have is registered first.

simkit run

Workflow run lifecycle.

Command What it does
start <workflow-type-ref> Create + start a run from a workflow type. Required: -p <project-id>.
track <run-id> Live-follow a run's state transitions.
<run-id> (default) Snapshot of the run's current status.
cancel <run-id> Cascading cancel.
pause <run-id> Pause an in-flight run.
resume <run-id> Resume a paused run.
search <query> -p <project-id> Find runs by name (partial match). Add --case-sensitive to match case.
resource-usage <run-id> CPU/memory/wall-clock report.
validation <run-id> Non-interactive validation of the run: state and rule results. Add --json for the raw payload.

simkit run start

simkit run start <workflow_type_name>
  -p, --project-id <id>
  [-c, --config <config-file.json>]
  [-i, --input  <input-name>:<data-location>:[size_kb]]...
  [-o, --output <output-name>:<data-location>]...
  [-m, --mode DRY|REAL]              # default: REAL
  [--no-operation-recycling]         # execute every operation again

Workflow inputs reference data instances by location; outputs bind to local files (uploaded to the platform on completion).

By default the runner recycles the result of an earlier operation run with identical inputs and configuration instead of executing it again. --no-operation-recycling turns that off for this run, so every operation executes, which is what you want when testing a method or a workflow type change end to end.

simkit workflow

Workflows (configured workflow type instances).

Command What it does
list List workflows in a project
list-versions <workflow-id> List versions of a workflow
read <workflow-id> Show a workflow's current state
read-version <workflow-id> <version-id> Show a specific version
search <query> -p <project-id> Find workflows by name/description (partial match). Add --case-sensitive to match case.
validate <workflow-id> Run validation rules against the current configuration; report failing cases
validate-candidate ... Validate a candidate configuration before saving
version effective-configuration <version-id> [-m CONFIG\|PROVENANCE\|VALIDATION] Show a version's effective configuration — defaults populated, materials materialized — with the provenance of every material field and the validation results
migrate <workflow-id> --to <new-workflow-type-ref> Migrate a workflow to a new workflow type version
copy <workflow-id> ... Duplicate a workflow

simkit data

Data-instance management.

Command What it does
upload <local-file> ... Upload a local file as a data instance
download <data-location> <local-file> Download an instance
info <data-location> Inspect a data instance's metadata
search <query> -p <project-id> Find data by name (partial match). Add --case-sensitive to match case.
copy ... Duplicate a data instance to a new location

simkit agent

Support for coding agents working on workflow components.

Command What it does
skill install [--agent claude-code\|codex\|all]... [--copy] [--scope user\|project] [--directory <dir>] Install or update the workflow development skill the CLI bundles: the essential context for developing, building, testing, registering and releasing components, with a reference per component kind, in the Agent Skills format. It is installed once into the canonical ~/.agents/skills directory (.agents/skills of the repository with project scope) that Codex reads; an agent named with --agent that reads another directory, Claude Code with ~/.claude/skills, gets a link to that copy, or an independent copy with --copy. Installing again refreshes the skill's own files and leaves other files in its directory alone

See Set up an AI coding agent.

simkit export / simkit import

Move components, data, and workflows to and from a portable zip archive. It is useful in a lot of situations — exploring or troubleshooting what you have, backing up and restoring it, sharing a set of objects with someone else, or taking an existing component as inspiration for a new one (pair it with generate-dsl below). Export writes a zip; import recreates its contents.

Command What it does
export [selectors] -o <archive.zip> Export selected objects and their dependency closure
import <archive.zip> Recreate the archive's objects; existing components are skipped
simkit export
  -o, --output <archive.zip>
  [--component-group <ref>] [--component <ref>] [--component-version <ref>]
  [--data <id>] [--workflow <id>] [--workflow-version <id>] [--project <id>]
  [--no-dependencies]            # export only the named seeds
  [--metadata-only]              # omit internal data bytes
  [--version-state <state>]      # restrict component versions to these lifecycle
                                 #   states (repeatable); applies to --component / --component-group
  [--latest-version-only]        # only the highest version of each component

simkit import <archive.zip>
  [--target-project <id>]      # override the project for workflows/data
  [--on-conflict skip|fail]    # default: skip
  [--dry-run]                  # validate and report; write nothing

Re-importing a component that already exists is skipped by default, so running an import more than once is safe. Data and workflows are recreated with fresh ids, and any references to them are updated to match. Workflow runs can be exported for inspection but are not re-imported. Run with --dry-run first to confirm that anything the archive relies on but does not itself contain is already present.

simkit generate-dsl

Generate unified-DSL (.kts) scaffolds from the component versions in an archive — a starting point for taking an existing component as an example. See how-to: scaffold from an existing component.

simkit generate-dsl <archive.zip>
  [-o, --output-dir <dir>]   # default: current directory

simkit health

Diagnostic — mostly for debugging connectivity / waiting for services to come up. Component developers rarely use this directly. Useful in CI scripts that need to wait on a stack.

Cross-references