Skip to content

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 build produces <ref>.<kind>.json envelopes).
  • API key for your SimScale account. Your account needs MEMBER permission 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

simkit api-key set <YOUR_KEY>

The key is stored in ~/.simkitrc.

Register

simkit component register <pkg-1>.<kind>.json [<pkg-2>.<kind>.json ...]

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:

  1. Promote a snapshot to a release candidate (simkit component promote).
  2. 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_SERVICE to force a registry-first lookup if the dependency is registered but not yet in your cache.
  • Permission denied. Your API key doesn't have DEVELOP on the component group. Check simkit 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