Register a component¶
Register pushes the component's package (the <ref>.<kind>.json
envelope produced by simkit component build) into the component
registry, where workflows can resolve and use it.
Prerequisites¶
- Built component package(s) (
simkit component buildproduces<ref>.<kind>.jsonenvelopes). - API key for your SimScale account. Your account needs
MEMBERpermission or higher on the component group you're registering under (directly or inherited from a parent group), or you must be an admin of your organization.
Set up authentication¶
The key is stored in ~/.simkitrc.
Register¶
You can pass multiple packages of any kinds in one call — a mix of
.data-type.json, .method.json, .workflow-type.json, and
.material.json envelopes is fine (simkit component build produces
the material envelope from the .material.kts; see Materials). The CLI auto-detects each kind from the
envelope's type field (with the filename suffix as a hint). On a
typical "build all then register all" run, this is one command.
The CLI walks the dependency closure of each input. Any declared
dependency ref the registry doesn't already have is pulled from your local
cache (~/.workflows/repository/) and registered first, so the
foreign-key constraints are always satisfied.
What happens to a SNAPSHOT¶
Snapshots are immutable from creation. Each simkit component build
produces a new entry identified by a unique date-and-sequence suffix
(1.0.0-SNAPSHOT-2026-05-15-1, …-2, …). Re-registering the same
build artifact is idempotent; there is no overwrite — prior snapshots
remain in the registry.
What happens to a RELEASED version¶
A released version is immutable. It cannot be registered directly —
it is produced by two separate steps, not by simkit component register:
- Promote a snapshot to a release candidate (
simkit component promote). - Release the RC once it has been reviewed (
simkit component release).
A second register attempt with the same released version is rejected; bump the version number for any future change.
See release-a-component for the full flow.
Common errors¶
- Foreign-key constraint violation. Some transitive dependency isn't in
the registry and isn't in your local cache. Either build the
missing dependency yourself first, or pass
--dep-source REGISTRY_SERVICEto force a registry-first lookup if the dependency is registered but not yet in your cache. - Permission denied. Your API key doesn't have
DEVELOPon the component group. Checksimkit component permission list <group>. - Component is archived. No new versions of an archived component
can be registered. Unarchive (
simkit component unarchive) or pick a new component id.
Cross-references¶
- Concepts: components and versions — versioning rules, what changes are allowed.
- Concepts: dependencies and snapshots — the resolver chain, the local cache.
- Reference: SimKit CLI — full options for
component register. - Release a component — the snapshot → released flip.