CLI reference#

Use ibek --help and ibek <group> <command> --help for the installed version. The complete command reference below is generated from the CLI.

When to run each command#

Phase

Commands

Purpose

Container build

support generate-schema, support apt-install-runtime-packages

Describe support YAML and install declared runtime Debian packages.

Container build

pattern install, pattern check --image

Install runtime patterns beside the image’s support modules, and verify them.

Container build

ioc generate-schema, ioc extract-runtime-assets

Describe the image’s available entities and package its runtime files.

Container startup

runtime generate2, runtime place-files, runtime generate-autosave, ioc do-wait

Generate the instance, place its files, prepare autosave, and wait for hardware.

Container build

dev stamp

Record the source tree the image is built from.

Development container

dev status, dev sync

Compare the container with the mounted project and bring it level.

Development container

dev support

Build support modules from clones on the host, to work on their source.

Development container

dev instance, ioc build-docker

Select a checked-out instance; experimentally execute Dockerfile steps.

Outside the IOC container

pattern add/update/check/restore/schema

Maintain runtime support and editor schemas in an instance repository.

These are intended environments, not enforced modes. Schema generation can also run outside a container with explicit input paths. Compiling EPICS modules is handled by the build recipes in ibek-support, not by a general-purpose ibek build command.

Runtime generation#

In an IOC image, the startup script normally runs the equivalent of:

ibek runtime generate2 /epics/ioc/config
ibek runtime place-files /epics/ioc/config
ibek runtime generate-autosave
ibek ioc do-wait

generate2 reads ioc.yaml then runtime.yaml when present in the supplied folder. Repeated --instance / -i options add files before those two; the first file supplies the IOC name and later files append entities and post_db_files entries. Without --definitions, support definitions are discovered recursively in $EPICS_ROOT/ibek-defs and the config folder. Supplying --definitions replaces that automatic discovery; repeat it for each required file. A module defined in both places is reported with a warning: the config folder’s entity models replace the image’s of the same name.

Generation recreates the output directory (default /epics/runtime), writing st.cmd, ioc.subst, and any generated auxiliary files. Run place-files after generation: it copies top-level .proto / .protocol files into runtime/protocol, and .db / .template files into runtime/db.

PVI generation is enabled by default; --no-pvi disables it. --output changes the startup/substitution output directory, but does not relocate every runtime or PVI path. See Paths and environment.

The image’s startup script still expands substitutions with EPICS msi and launches the IOC executable. generate2 does not start the IOC. runtime generate remains available for legacy single-file invocations; use generate2 for new scripts.

Schema generation#

The three schema commands have different inputs:

# The format accepted by every *.ibek.support.yaml file
ibek support generate-schema --output ibek.support.schema.json

# IOC entities supplied by explicitly named support definitions
ibek ioc generate-schema --no-ibek-defs motor.ibek.support.yaml \
    --output ibek.ioc.schema.json

# Published image entities plus an instance's local runtime support
ibek pattern schema services/my-ioc

The first two print JSON to stdout when --output is omitted. ioc generate-schema includes definitions directly in /epics/ibek-defs by default; --no-ibek-defs disables that lookup. pattern schema instead uses the published schema for the instance’s image; see Vendor runtime support and Paths and environment for its cache behavior.

Development commands#

ibek dev instance /workspaces/my-services/services/my-ioc

This replaces /epics/ioc/config with a symlink to the instance’s config directory. It removes the previous directory or link, so use it in the development container with the instance configuration kept in version control.

A container from a pre-built image#

A devcontainer mounts the host project over /epics/generic-source, the folder the image was built from. The host’s checkout can differ from the image’s copy, so the last step of the Dockerfile’s developer stage records what was built:

COPY Dockerfile requirements.txt ${SOURCE_FOLDER}/
RUN ibek dev stamp

dev stamp writes /epics/dev-stamp.json: hashes of the Dockerfile’s ARG and FROM lines, requirements.txt, ibek-support/_ansible (without its vars folder), and for each RUN ansible.sh <module> line the module’s folder in ibek-support*, split into its definition files (*.ibek.support.yaml, *.pvi.device.yaml, *.req) and the rest. A third hash per module covers what its install.yml says to clone: module, version, organization, git_repo, recursive, patch_file and the content of the patch, with any -v <version> of the module’s Dockerfile line. The stamp also holds the rest of that line: what comes before the module name and what comes after it. The hashes cover file names and content, with CRLF read as LF. They leave out file modes and a fixed list of names: .git, .ansible, __pycache__, *.pyc, *build.log, *~, *.swp and .DS_Store. Any other file in a hashed folder counts, tracked by git or not. A symbolic link counts as its link text, not as what it points at. The stamp does not cover the files that ibek pattern install writes into the image: they are not compared, and dev sync leaves them as they are.

ibek dev status          # show the differences, change nothing
ibek dev sync            # fix what needs no build, report the rest
ibek dev sync --build    # also rebuild what is out of date

Difference

dev sync

dev sync --build

A module’s definition files

Runs ansible.sh <modules> --tags runtime, removes dangling links from /epics/ibek-defs, /epics/pvi-defs and /epics/autosave, regenerates /epics/ibek-defs/ioc.schema.json.

The same.

A module’s other files, the module list, _ansible

Reported.

Runs ansible.sh <module> for the first such module and each one after it in the Dockerfile, then ansible.sh ioc.

requirements.txt

Reported.

Runs uv pip install --upgrade -r requirements.txt, regenerates the schema and stops: run it again for anything more.

The base image

Reported: pull a newer developer image or rebuild it locally.

The same.

The IOC binary is missing, older than ioc/Makefile or a file in ioc/configure or ioc/iocApp (O.* folders apart), or older than the start of the last build by dev sync --build

Reported: run make in /epics/ioc.

Runs ansible.sh ioc.

A module is built from the source already in /epics/support/<module>, or in the folder that a local_path in its install.yml names, unless what its install.yml says to clone, or the -v of its Dockerfile line, has changed. Then ansible.sh <module> --tags clone -e force_clone=true first removes that folder and clones it again: edits made in the folder are discarded. A folder that is a symbolic link is never removed: the module is built in it as it is. Both dev status and dev sync name each folder that dev sync --build would remove. The new clone is recorded before the build, so if the build fails, the next dev sync --build builds the folder as it then is, without cloning again. A module with no folder in /epics/support is cloned the same way, with ansible.sh <module> --tags clone, before its build. If a clone fails, the folder may hold some other source, such as the repository’s default branch, which the clone tasks keep: until a clone succeeds, dev status reports clone not finished and each dev sync --build clones the module again, at whatever version its install.yml and Dockerfile line then give. A module declared with dev support is linked to its clone instead, and a link is built as it is. A module the Dockerfile no longer builds stays installed, and reported, until the container is recreated from an image built without it.

dev sync --build builds a module with its own line of the Dockerfile: RUN ansible.sh -v R2 motor -e skip_clean=true is run again as ansible.sh -v R2 motor -e skip_clean=true, and a change to the line counts as a change to the module. The two commands that ibek issues with tags of its own keep the line’s -v and its arguments other than --tags and --skip-tags, after ibek’s: ansible.sh -v R2 motor --tags runtime -e skip_clean=true. A line whose tags leave out runtime, such as RUN ansible.sh vdct --tags system,pre_build_tasks, links no definition files, so dev sync links none for it. A line whose tags leave out clone is never cloned again: a change to what its install.yml says to clone runs the line again, as a change to the line’s -v does. A line that is more than one ansible.sh command (&&, ;, a pipe, a redirect, a variable, a continuation \), or that has an option before the module other than -v, cannot be run again as it stands: dev stamp and dev sync --build stop with one line that names it, and dev status and dev sync report it.

The IOC line goes when the IOC binary is newer than each of the files and the build it is compared with, as it is once make has built it.

dev sync exits 0 when it only has differences to report; a command it runs that fails gives its exit code. The stamp records each module as it is built, so after a failed build the next dev sync --build starts at the module that failed. In an image with no stamp, each of these commands says so in one line and exits 0. A stamp that cannot be read, a missing Dockerfile or requirements.txt, an ibek-support submodule that is not checked out, and a module folder that cannot be read are one line too: dev status and dev sync exit 0, dev sync --build exits 1. dev instance prints the same report after linking the instance.

A container keeps the image it was created from: “Reopen in Container” in VS Code uses the existing container even when the host has pulled or built a different developer image, usually a later one. The devcontainer’s start-up script on the host writes the ID of the image its tag points to into .devcontainer/image-id in the project, which the container sees as /epics/generic-source/.devcontainer/image-id. When a container is created, its postCreateCommand copies that file to /epics/dev-image-id. When both files can be read and name different images (a sha256: prefix and surrounding white space apart), dev status and dev sync start their report with a line that begins WARNING: and says to use “Dev Containers: Rebuild Container”. dev instance prints it after its Symlinking line. dev sync --build prints it again as its last line when it has rebuilt anything or upgraded the Python packages, since a build prints enough to push the first one out of sight. With either file missing, empty or unreadable (a file that is not text counts as unreadable), nothing is said. The warning changes no exit code and nothing that the commands do, and it does not need a stamp.

ioc build-docker is experimental: it interprets supported Dockerfile steps inside the development container; it is not a substitute for building an image. ioc extract-runtime-assets moves files out of its source tree for speed; run it only in the disposable packaging stage intended by the image build.

Working on a support module#

ibek dev support <module>...            # build these modules from clones on the host
ibek dev support <module>... --release  # stop building them from the clones

dev support builds each named support module, named as the Dockerfile names it, from a clone at /workspaces/<module> on the host. It clones the module’s repository at the version its Dockerfile line gives with -v, or else the version of its install.yml, or uses a clone of that repository that is already there, with whatever it has checked out. It removes the module that the image built, with any edits made in its folder, and links the module’s support folder to the clone: that is /epics/support/<name>, where <name> is the module of its install.yml, or the local_path that its install.yml sets. It then builds the module, the modules after it in the Dockerfile and the IOC. Run it again to build again after a change. The build edits some tracked files of a clone, such as configure/RELEASE, and names them: do not commit those edits. The paths that the build makes are added to the clone’s .git/info/exclude, between lines that start # made by an ibek dev build, so git status does not show them: a file added later under a directory listed there does not show either.

The modules are declared in .ibek-dev.yaml in the generic IOC project, which is on the host and so outlives the container. In a container that is created again, dev sync reports them and dev sync --build links and builds them. With --release, nothing is built: the links and the declarations are removed and the clones are left alone. The support folder of a module that was linked is then missing until dev sync --build clones the module at its version and builds it.

Complete command reference#

ibek#

ibek Usage: ibek [OPTIONS] COMMAND [ARGS]... IOC Builder for EPICS and Kubernetes Provides support for building generic EPICS IOC container images and for running IOC instances in a Kubernetes cluster. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--version<bool>Print the version of ibek and exit│ │--install-completion<bool>Install completion for the current      │ │shell.                                  │ │--show-completion<bool>Show completion for the current shell,  │ │to copy it or customize the             │ │installation.                           │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │supportCommands for building support modules during container build       │ │ioc    Commands for building generic IOCs during container build          │ │runtimeCommands for building IOC instance startup files at container      │ │runtime                                                            │ │dev    Commands for working inside Generic IOC development containers     │ │patternCommands for vendoring runtime-support patterns into a services    │ │repo, or installing them into a generic IOC image                  │ ╰──────────────────────────────────────────────────────────────────────────────╯
ibek Usage: ibek [OPTIONS] COMMAND [ARGS]... IOC Builder for EPICS and Kubernetes Provides support for building generic EPICS IOC container images and for running IOC instances in a Kubernetes cluster. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--version<bool>Print the version of ibek and exit│ │--install-completion<bool>Install completion for the current      │ │shell.                                  │ │--show-completion<bool>Show completion for the current shell,  │ │to copy it or customize the             │ │installation.                           │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │supportCommands for building support modules during container build       │ │ioc    Commands for building generic IOCs during container build          │ │runtimeCommands for building IOC instance startup files at container      │ │runtime                                                            │ │dev    Commands for working inside Generic IOC development containers     │ │patternCommands for vendoring runtime-support patterns into a services    │ │repo, or installing them into a generic IOC image                  │ ╰──────────────────────────────────────────────────────────────────────────────╯

support#

support Usage: ibek support [OPTIONS] COMMAND [ARGS]... Commands for building support modules during container build ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │apt-install-runtime-packagesInstall packages from the list collected by   │ │calls to add_runtime_packages                 │ │generate-schema             Produce JSON global schema for all            │ │<support_module>.ibek.support.yaml files      │ ╰──────────────────────────────────────────────────────────────────────────────╯
support Usage: ibek support [OPTIONS] COMMAND [ARGS]... Commands for building support modules during container build ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │apt-install-runtime-packagesInstall packages from the list collected by   │ │calls to add_runtime_packages                 │ │generate-schema             Produce JSON global schema for all            │ │<support_module>.ibek.support.yaml files      │ ╰──────────────────────────────────────────────────────────────────────────────╯
apt-install-runtime-packages#
apt-install-runtime-packages Usage: ibek support apt-install-runtime-packages [OPTIONS] Install packages from the list collected by calls to add_runtime_packages ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
apt-install-runtime-packages Usage: ibek support apt-install-runtime-packages [OPTIONS] Install packages from the list collected by calls to add_runtime_packages ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
generate-schema#
generate-schema Usage: ibek support generate-schema [OPTIONS] Produce JSON global schema for all <support_module>.ibek.support.yaml files ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--output<path>The filename to write the schema to│ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
generate-schema Usage: ibek support generate-schema [OPTIONS] Produce JSON global schema for all <support_module>.ibek.support.yaml files ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--output<path>The filename to write the schema to│ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯

ioc#

ioc Usage: ibek ioc [OPTIONS] COMMAND [ARGS]... Commands for building generic IOCs during container build ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │build-docker          EXPERIMENTAL: Attempt to interpret the Dockerfile   │ │and run it's commands                               │ │inside the devcontainer. For internal, incremental  │ │builds of the Dockerfile.                           │ │generate-schema       Create a json schema from a number of               │ │support_module.ibek.support.yaml                    │ │files                                               │ │extract-runtime-assetsFind all the runtime assets in an EPICS installation│ │and copy them to a                                  │ │new folder hierarchy for packaging into a container │ │runtime stage.                                      │ │do-wait               Read the YAML list file which includes the devices  │ │to wait for and execute the appropriate wait command│ │for each device type.                               │ │Currently only supports request to wait for         │ │successful connection to a remote socket.           │ │For now, unknown entry types (i.e. not              │ │"ibek.wait_ip") are treated as a non-fatal warning. │ ╰──────────────────────────────────────────────────────────────────────────────╯
ioc Usage: ibek ioc [OPTIONS] COMMAND [ARGS]... Commands for building generic IOCs during container build ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │build-docker          EXPERIMENTAL: Attempt to interpret the Dockerfile   │ │and run it's commands                               │ │inside the devcontainer. For internal, incremental  │ │builds of the Dockerfile.                           │ │generate-schema       Create a json schema from a number of               │ │support_module.ibek.support.yaml                    │ │files                                               │ │extract-runtime-assetsFind all the runtime assets in an EPICS installation│ │and copy them to a                                  │ │new folder hierarchy for packaging into a container │ │runtime stage.                                      │ │do-wait               Read the YAML list file which includes the devices  │ │to wait for and execute the appropriate wait command│ │for each device type.                               │ │Currently only supports request to wait for         │ │successful connection to a remote socket.           │ │For now, unknown entry types (i.e. not              │ │"ibek.wait_ip") are treated as a non-fatal warning. │ ╰──────────────────────────────────────────────────────────────────────────────╯
build-docker#
build-docker Usage: ibek ioc build-docker [OPTIONS] EXPERIMENTAL: Attempt to interpret the Dockerfile and run it's commands inside the devcontainer. For internal, incremental builds of the Dockerfile. Useful for debugging the Dockerfile without having to build the whole container from outside of the IOC devcontainer. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--start<int>The step to start at in the Dockerfile│ │[default: 1]                          │ │--stop<int>The step to stop at in the Dockerfile│ │[default: 999]                       │ │--dockerfile<path>The filepath to the Dockerfile to build         │ │[default:                                       │ │/home/runner/work/ibek/ibek/Dockerfile]         │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
build-docker Usage: ibek ioc build-docker [OPTIONS] EXPERIMENTAL: Attempt to interpret the Dockerfile and run it's commands inside the devcontainer. For internal, incremental builds of the Dockerfile. Useful for debugging the Dockerfile without having to build the whole container from outside of the IOC devcontainer. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--start<int>The step to start at in the Dockerfile│ │[default: 1]                          │ │--stop<int>The step to stop at in the Dockerfile│ │[default: 999]                       │ │--dockerfile<path>The filepath to the Dockerfile to build         │ │[default:                                       │ │/home/runner/work/ibek/ibek/Dockerfile]         │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
generate-schema#
generate-schema Usage: ibek ioc generate-schema [OPTIONS] [definitions]... Create a json schema from a number of support_module.ibek.support.yaml files ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │definitions...<list[Path]>File paths to one or more support module│ │YAML files                              │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--output<path>The file path to the schema file to│ │be written                         │ │--ibek-defs--no-ibek-defs<bool>Include definitions in             │ │/epics/ibek-defs in generated      │ │schema                             │ │[default: ibek-defs]               │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
generate-schema Usage: ibek ioc generate-schema [OPTIONS] [definitions]... Create a json schema from a number of support_module.ibek.support.yaml files ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │definitions...<list[Path]>File paths to one or more support module│ │YAML files                              │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--output<path>The file path to the schema file to│ │be written                         │ │--ibek-defs--no-ibek-defs<bool>Include definitions in             │ │/epics/ibek-defs in generated      │ │schema                             │ │[default: ibek-defs]               │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
extract-runtime-assets#
extract-runtime-assets Usage: ibek ioc extract-runtime-assets [OPTIONS] {destination} [extras]... Find all the runtime assets in an EPICS installation and copy them to a new  folder hierarchy for packaging into a container runtime stage. This should be performed in a throw away container stage (runtime_prep) as it is destructive of the source folder, because it uses move for speed. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │*destination<path>The root folder to extract assets into│ │[required]                            │ │extras...  <list[Path]>list of files to also extract│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--source<path>The root folder to extract assets    │ │from                                 │ │[default: /epics]                    │ │--defaults--no-defaults<bool>copy the default assets│ │[default: defaults]    │ │--dry-run--no-dry-run<bool>show what would happen│ │[default: no-dry-run] │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
extract-runtime-assets Usage: ibek ioc extract-runtime-assets [OPTIONS] {destination} [extras]... Find all the runtime assets in an EPICS installation and copy them to a new  folder hierarchy for packaging into a container runtime stage. This should be performed in a throw away container stage (runtime_prep) as it is destructive of the source folder, because it uses move for speed. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │*destination<path>The root folder to extract assets into│ │[required]                            │ │extras...  <list[Path]>list of files to also extract│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--source<path>The root folder to extract assets    │ │from                                 │ │[default: /epics]                    │ │--defaults--no-defaults<bool>copy the default assets│ │[default: defaults]    │ │--dry-run--no-dry-run<bool>show what would happen│ │[default: no-dry-run] │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
do-wait#
do-wait Usage: ibek ioc do-wait [OPTIONS] Read the YAML list file which includes the devices to wait for and execute the appropriate wait command for each device type. Currently only supports request to wait for successful connection to a remote socket. For now, unknown entry  types (i.e. not "ibek.wait_ip") are treated as a non-fatal warning. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--source<path>The YAML file containing the list of wait commands  │ │to execute                                          │ │[default: /epics/runtime/wait_list.yaml]            │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
do-wait Usage: ibek ioc do-wait [OPTIONS] Read the YAML list file which includes the devices to wait for and execute the appropriate wait command for each device type. Currently only supports request to wait for successful connection to a remote socket. For now, unknown entry  types (i.e. not "ibek.wait_ip") are treated as a non-fatal warning. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--source<path>The YAML file containing the list of wait commands  │ │to execute                                          │ │[default: /epics/runtime/wait_list.yaml]            │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯

runtime#

runtime Usage: ibek runtime [OPTIONS] COMMAND [ARGS]... Commands for building IOC instance startup files at container runtime ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │generate2        An updated version of generate that supports multiple    │ │instance files.                                          │ │This allows a main ioc.yaml with entities from the       │ │generic IOC image and                                    │ │additional runtime.yaml with entities from the services  │ │repository.                                              │ │place-files      Place runtime artifacts (proto / db / ...) from an IOC   │ │instance config                                          │ │folder into their runtime search-path locations for IOC  │ │boot.                                                    │ │generate         LEGACY single-instance generate; superseded by           │ │`generate2`.                                             │ │generate-autosaveGenerate autosave request files from autosave settings   │ │and positions                                            │ │template files found in support module db folders. Allow │ │overrides                                                │ │from ibek-support/* and /epics/ioc/config folders.       │ ╰──────────────────────────────────────────────────────────────────────────────╯
runtime Usage: ibek runtime [OPTIONS] COMMAND [ARGS]... Commands for building IOC instance startup files at container runtime ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │generate2        An updated version of generate that supports multiple    │ │instance files.                                          │ │This allows a main ioc.yaml with entities from the       │ │generic IOC image and                                    │ │additional runtime.yaml with entities from the services  │ │repository.                                              │ │place-files      Place runtime artifacts (proto / db / ...) from an IOC   │ │instance config                                          │ │folder into their runtime search-path locations for IOC  │ │boot.                                                    │ │generate         LEGACY single-instance generate; superseded by           │ │`generate2`.                                             │ │generate-autosaveGenerate autosave request files from autosave settings   │ │and positions                                            │ │template files found in support module db folders. Allow │ │overrides                                                │ │from ibek-support/* and /epics/ioc/config folders.       │ ╰──────────────────────────────────────────────────────────────────────────────╯
generate2#
generate2 Usage: ibek runtime generate2 [OPTIONS] [config_folder] An updated version of generate that supports multiple instance files. This  allows a main ioc.yaml with entities from the generic IOC image and additional runtime.yaml with entities from the services repository. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │config_folder<dir>The IOC instance folder containing entity yaml  │ │files                                           │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--instance-i<list[Path]>Additional IOC instance entity │ │yaml files                     │ │--definitions<list[Path]>The filepath to a support      │ │module yaml file               │ │--output-o<path>The folder to write the        │ │generated runtime files to     │ │[default: /epics/runtime]      │ │--pvi--no-pvi<bool>generate pvi PVs and opi files│ │[default: pvi]                │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
generate2 Usage: ibek runtime generate2 [OPTIONS] [config_folder] An updated version of generate that supports multiple instance files. This  allows a main ioc.yaml with entities from the generic IOC image and additional runtime.yaml with entities from the services repository. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │config_folder<dir>The IOC instance folder containing entity yaml  │ │files                                           │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--instance-i<list[Path]>Additional IOC instance entity │ │yaml files                     │ │--definitions<list[Path]>The filepath to a support      │ │module yaml file               │ │--output-o<path>The folder to write the        │ │generated runtime files to     │ │[default: /epics/runtime]      │ │--pvi--no-pvi<bool>generate pvi PVs and opi files│ │[default: pvi]                │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
place-files#
place-files Usage: ibek runtime place-files [OPTIONS] {config_folder} Place runtime artifacts (proto / db / ...) from an IOC instance config folder  into their runtime search-path locations for IOC boot. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │*config_folder<dir>The IOC instance config folder containing    │ │runtime artifacts                            │ │[required]                                   │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
place-files Usage: ibek runtime place-files [OPTIONS] {config_folder} Place runtime artifacts (proto / db / ...) from an IOC instance config folder  into their runtime search-path locations for IOC boot. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │*config_folder<dir>The IOC instance config folder containing    │ │runtime artifacts                            │ │[required]                                   │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
generate#
generate Usage: ibek runtime generate [OPTIONS] {instance} {definitions}... LEGACY single-instance generate; superseded by `generate2`. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │*instance      <path>The filepath to the ioc instance     │ │entity file                          │ │[required]                           │ │*definitions...<list[Path]>The filepath to a support module yaml│ │file                                 │ │[required]                           │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--output-o<path>The folder to write the generated runtime │ │files to                                  │ │[default: /epics/runtime]                 │ │--pvi--no-pvi<bool>generate pvi PVs and opi files│ │[default: pvi]                │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
generate Usage: ibek runtime generate [OPTIONS] {instance} {definitions}... LEGACY single-instance generate; superseded by `generate2`. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │*instance      <path>The filepath to the ioc instance     │ │entity file                          │ │[required]                           │ │*definitions...<list[Path]>The filepath to a support module yaml│ │file                                 │ │[required]                           │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--output-o<path>The folder to write the generated runtime │ │files to                                  │ │[default: /epics/runtime]                 │ │--pvi--no-pvi<bool>generate pvi PVs and opi files│ │[default: pvi]                │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
generate-autosave#
generate-autosave Usage: ibek runtime generate-autosave [OPTIONS] [subst_file] Generate autosave request files from autosave settings and positions template  files found in support module db folders. Allow overrides from ibek-support/*  and /epics/ioc/config folders. CONVENTION: req template files must be in the support module db folder after the module is built. The template files must be named with the same stem as the db file that defines the PVs to be saved. The naming convention is: DbTemplateFileStem_positions.req : for autosave stage 0 settings DbTemplateFileStem_settings.req : for autosave stage 1 settings The steps are: 1. at build time "ibek support generate-links" creates symlinks to override    req files in /epics/autosave. These override req files come from individual    ibek-support folders 2. at runtime "ibek runtime generate-autosave" handles the remaining steps: 3. All req files in /epics/support/*/db/ are symlinked to /epics/autosave    except if that req file name already exists (from 1.) 4. All req files in /epics/ioc/config are symlinked to /epics/autosave    overwriting any existing req file (thus supplying instance overrides) 5. AutosaveGenerator generates two substitution files for settings and  positions.    These substitution files are the same as ioc.db except that they contain    the file names of the req templates instead of the db files. If ioc.db    contains a database template that has no corresponding req template, then    that line is omitted from the new substitution file. 6. Two req files are generated from the two substitution files using MSI. Where the database template has a full path, this will be stripped in substitution files created in step 5. At runtime autosave will be pointed at the /epics/autosave folder for its search path. There is an issue with name collisions that we will address if this ever arises. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │subst_file<path>[default: /epics/runtime/ioc.subst]│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
generate-autosave Usage: ibek runtime generate-autosave [OPTIONS] [subst_file] Generate autosave request files from autosave settings and positions template  files found in support module db folders. Allow overrides from ibek-support/*  and /epics/ioc/config folders. CONVENTION: req template files must be in the support module db folder after the module is built. The template files must be named with the same stem as the db file that defines the PVs to be saved. The naming convention is: DbTemplateFileStem_positions.req : for autosave stage 0 settings DbTemplateFileStem_settings.req : for autosave stage 1 settings The steps are: 1. at build time "ibek support generate-links" creates symlinks to override    req files in /epics/autosave. These override req files come from individual    ibek-support folders 2. at runtime "ibek runtime generate-autosave" handles the remaining steps: 3. All req files in /epics/support/*/db/ are symlinked to /epics/autosave    except if that req file name already exists (from 1.) 4. All req files in /epics/ioc/config are symlinked to /epics/autosave    overwriting any existing req file (thus supplying instance overrides) 5. AutosaveGenerator generates two substitution files for settings and  positions.    These substitution files are the same as ioc.db except that they contain    the file names of the req templates instead of the db files. If ioc.db    contains a database template that has no corresponding req template, then    that line is omitted from the new substitution file. 6. Two req files are generated from the two substitution files using MSI. Where the database template has a full path, this will be stripped in substitution files created in step 5. At runtime autosave will be pointed at the /epics/autosave folder for its search path. There is an issue with name collisions that we will address if this ever arises. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │subst_file<path>[default: /epics/runtime/ioc.subst]│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯

dev#

dev Usage: ibek dev [OPTIONS] COMMAND [ARGS]... Commands for working inside Generic IOC development containers ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │stamp   Record the source tree that this image is built from.             │ │status  Show how this container differs from the mounted source. Changes  │ │nothing.                                                          │ │sync    Bring this container level with the mounted source.               │ │instanceSymlink an IOC instance config folder into /epics/ioc/config.     │ │support Build support modules from clones on the host, to work on their   │ │source.                                                           │ ╰──────────────────────────────────────────────────────────────────────────────╯
dev Usage: ibek dev [OPTIONS] COMMAND [ARGS]... Commands for working inside Generic IOC development containers ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │stamp   Record the source tree that this image is built from.             │ │status  Show how this container differs from the mounted source. Changes  │ │nothing.                                                          │ │sync    Bring this container level with the mounted source.               │ │instanceSymlink an IOC instance config folder into /epics/ioc/config.     │ │support Build support modules from clones on the host, to work on their   │ │source.                                                           │ ╰──────────────────────────────────────────────────────────────────────────────╯
stamp#
stamp Usage: ibek dev stamp [OPTIONS] Record the source tree that this image is built from. Run as the last step of the developer stage of a generic IOC Dockerfile, after copying Dockerfile and requirements.txt into /epics/generic-source. Writes /epics/dev-stamp.json, which the other dev commands compare with the host project that a devcontainer mounts over /epics/generic-source. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
stamp Usage: ibek dev stamp [OPTIONS] Record the source tree that this image is built from. Run as the last step of the developer stage of a generic IOC Dockerfile, after copying Dockerfile and requirements.txt into /epics/generic-source. Writes /epics/dev-stamp.json, which the other dev commands compare with the host project that a devcontainer mounts over /epics/generic-source. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
status#
status Usage: ibek dev status [OPTIONS] Show how this container differs from the mounted source. Changes nothing. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
status Usage: ibek dev status [OPTIONS] Show how this container differs from the mounted source. Changes nothing. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
sync#
sync Usage: ibek dev sync [OPTIONS] Bring this container level with the mounted source. Links changed support definition files, removes dangling links and regenerates the IOC schema. Everything that needs a build is reported and left alone unless --build is given. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--build<bool>Also rebuild out of date support modules, those after│ │them in the Dockerfile, and the IOC                  │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
sync Usage: ibek dev sync [OPTIONS] Bring this container level with the mounted source. Links changed support definition files, removes dangling links and regenerates the IOC schema. Everything that needs a build is reported and left alone unless --build is given. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--build<bool>Also rebuild out of date support modules, those after│ │them in the Dockerfile, and the IOC                  │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
instance#
instance Usage: ibek dev instance [OPTIONS] {instance} Symlink an IOC instance config folder into /epics/ioc/config. Used in the devcontainer to allow the IOC instance to be run using /epics/ioc/starts.sh. Changes made to the config will be immediately available and also under version control. e.g. if instance is /workspaces/bl38p/iocs/bl38p-mo-panda-01 then we need: - /epics/ioc/config -> /workspaces/bl38p/iocs/bl38p-mo-panda-01/config ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │*instance<dir>The filepath to the ioc instance entity file│ │[required]                                  │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
instance Usage: ibek dev instance [OPTIONS] {instance} Symlink an IOC instance config folder into /epics/ioc/config. Used in the devcontainer to allow the IOC instance to be run using /epics/ioc/starts.sh. Changes made to the config will be immediately available and also under version control. e.g. if instance is /workspaces/bl38p/iocs/bl38p-mo-panda-01 then we need: - /epics/ioc/config -> /workspaces/bl38p/iocs/bl38p-mo-panda-01/config ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │*instance<dir>The filepath to the ioc instance entity file│ │[required]                                  │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
support#
support Usage: ibek dev support [OPTIONS] {modules}... Build support modules from clones on the host, to work on their source. Clones each module's repository to /workspaces/<module> at the version its Dockerfile line gives with -v, or else that of its install.yml, or uses a clone of that repository that is already there, with whatever it has checked out. Removes the module that the image built, links its support folder (/epics/support/ and the module of its install.yml, or the local_path of its install.yml) to the clone, then builds it, the modules after it in the Dockerfile and the IOC. Run it again to build again after a change. The build edits some tracked files of a clone, such as configure/RELEASE, and names them: do not commit those edits. The modules are declared in .ibek-dev.yaml in the project. In a container that is created again, `ibek dev sync` reports them and `ibek dev sync --build` links and builds them. With --release, nothing is built: `ibek dev sync --build` then clones each module that was linked at the version that the Dockerfile builds, and builds it. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │*modules...<list[str]>The support modules to work on, as the    │ │Dockerfile names them                     │ │[required]                                │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--release<bool>Stop building the modules from their clones: remove│ │the links and the declarations, and leave the      │ │clones alone                                       │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
support Usage: ibek dev support [OPTIONS] {modules}... Build support modules from clones on the host, to work on their source. Clones each module's repository to /workspaces/<module> at the version its Dockerfile line gives with -v, or else that of its install.yml, or uses a clone of that repository that is already there, with whatever it has checked out. Removes the module that the image built, links its support folder (/epics/support/ and the module of its install.yml, or the local_path of its install.yml) to the clone, then builds it, the modules after it in the Dockerfile and the IOC. Run it again to build again after a change. The build edits some tracked files of a clone, such as configure/RELEASE, and names them: do not commit those edits. The modules are declared in .ibek-dev.yaml in the project. In a container that is created again, `ibek dev sync` reports them and `ibek dev sync --build` links and builds them. With --release, nothing is built: `ibek dev sync --build` then clones each module that was linked at the version that the Dockerfile builds, and builds it. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │*modules...<list[str]>The support modules to work on, as the    │ │Dockerfile names them                     │ │[required]                                │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--release<bool>Stop building the modules from their clones: remove│ │the links and the declarations, and leave the      │ │clones alone                                       │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯

pattern#

pattern Usage: ibek pattern [OPTIONS] COMMAND [ARGS]... Commands for vendoring runtime-support patterns into a services repo, or  installing them into a generic IOC image ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │add    Vendor a pattern into a destination: files + runtime-lock.yaml +   │ │schema.                                                            │ │installInstall patterns into this generic IOC image, beside its support   │ │modules.                                                           │ │update Re-vendor a pattern to a new pinned version; refresh hashes +      │ │schema.                                                            │ │check  Verify vendored files match runtime-lock.yaml (vendor integrity).  │ │restoreRevert vendored files to the version pinned in runtime-lock.yaml.  │ │schema Generate the instance's ioc.schema.json and rewrite ioc.yaml's     │ │header.                                                            │ ╰──────────────────────────────────────────────────────────────────────────────╯
pattern Usage: ibek pattern [OPTIONS] COMMAND [ARGS]... Commands for vendoring runtime-support patterns into a services repo, or  installing them into a generic IOC image ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │add    Vendor a pattern into a destination: files + runtime-lock.yaml +   │ │schema.                                                            │ │installInstall patterns into this generic IOC image, beside its support   │ │modules.                                                           │ │update Re-vendor a pattern to a new pinned version; refresh hashes +      │ │schema.                                                            │ │check  Verify vendored files match runtime-lock.yaml (vendor integrity).  │ │restoreRevert vendored files to the version pinned in runtime-lock.yaml.  │ │schema Generate the instance's ioc.schema.json and rewrite ioc.yaml's     │ │header.                                                            │ ╰──────────────────────────────────────────────────────────────────────────────╯
add#
add Usage: ibek pattern add [OPTIONS] {name} [dest] Vendor a pattern into a destination: files + runtime-lock.yaml + schema. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │*name<str>Pattern reference: name, e.g. │ │ibek-runtime-streamdevice:lakeshore340@1.0.0│ │[required]                                            │ │dest<dir>The destination folder to vendor into (an IOC instance│ │root)                                                 │ │[default: .]                                          │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--source-s<str>Override the library source URI (git URL or │ │local path)                                 │ │--include<list[str]>Also vendor pattern files matching the regex│ │SRC, to DEST (a manifest-style dest). Given │ │as SRC=DEST; repeatable; recorded in        │ │runtime-lock.yaml                           │ │--exclude<list[str]>Do not vendor manifest files matching this  │ │regex; repeatable; recorded in              │ │runtime-lock.yaml                           │ │--only<list[str]>Vendor only this pattern-relative file (and │ │the pattern's support YAML); list a model's │ │templates, pvi device, req and protocol     │ │files; repeatable; combines with --model;   │ │recorded in runtime-lock.yaml               │ │--model<list[str]>Vendor only the database, autosave req and  │ │pvi device files this entity model loads,   │ │the pattern's protocol files and its support│ │YAML; repeatable; combines with --only;     │ │recorded in runtime-lock.yaml               │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
add Usage: ibek pattern add [OPTIONS] {name} [dest] Vendor a pattern into a destination: files + runtime-lock.yaml + schema. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │*name<str>Pattern reference: name, e.g. │ │ibek-runtime-streamdevice:lakeshore340@1.0.0│ │[required]                                            │ │dest<dir>The destination folder to vendor into (an IOC instance│ │root)                                                 │ │[default: .]                                          │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--source-s<str>Override the library source URI (git URL or │ │local path)                                 │ │--include<list[str]>Also vendor pattern files matching the regex│ │SRC, to DEST (a manifest-style dest). Given │ │as SRC=DEST; repeatable; recorded in        │ │runtime-lock.yaml                           │ │--exclude<list[str]>Do not vendor manifest files matching this  │ │regex; repeatable; recorded in              │ │runtime-lock.yaml                           │ │--only<list[str]>Vendor only this pattern-relative file (and │ │the pattern's support YAML); list a model's │ │templates, pvi device, req and protocol     │ │files; repeatable; combines with --model;   │ │recorded in runtime-lock.yaml               │ │--model<list[str]>Vendor only the database, autosave req and  │ │pvi device files this entity model loads,   │ │the pattern's protocol files and its support│ │YAML; repeatable; combines with --only;     │ │recorded in runtime-lock.yaml               │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
install#
install Usage: ibek pattern install [OPTIONS] [refs]... Install patterns into this generic IOC image, beside its support modules. Run at image build time. Support YAML goes to $EPICS_ROOT/ibek-defs, PVI device YAML to $EPICS_ROOT/pvi-defs, protocols to $EPICS_ROOT/support/configure/protocol, and database templates and req files to $EPICS_ROOT/support/<library>/db. Nothing is written unless every pattern installs without a collision; what is installed is recorded in the image lock, which `ibek pattern check --image` verifies. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │refs...<list[str]>Pattern references: library:name@version, e.g.  │ │ibek-runtime-streamdevice:lakeshore340@1.0.0    │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--list-l<file>Also install the references in this file, one per │ │line; '#' starts a comment                        │ │--source-s<str>Fetch every pattern from this library source (git │ │URL or local path) instead of the one its library │ │name resolves to                                  │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
install Usage: ibek pattern install [OPTIONS] [refs]... Install patterns into this generic IOC image, beside its support modules. Run at image build time. Support YAML goes to $EPICS_ROOT/ibek-defs, PVI device YAML to $EPICS_ROOT/pvi-defs, protocols to $EPICS_ROOT/support/configure/protocol, and database templates and req files to $EPICS_ROOT/support/<library>/db. Nothing is written unless every pattern installs without a collision; what is installed is recorded in the image lock, which `ibek pattern check --image` verifies. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │refs...<list[str]>Pattern references: library:name@version, e.g.  │ │ibek-runtime-streamdevice:lakeshore340@1.0.0    │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--list-l<file>Also install the references in this file, one per │ │line; '#' starts a comment                        │ │--source-s<str>Fetch every pattern from this library source (git │ │URL or local path) instead of the one its library │ │name resolves to                                  │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
update#
update Usage: ibek pattern update [OPTIONS] [dest] Re-vendor a pattern to a new pinned version; refresh hashes + schema. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │dest<dir>The destination folder to vendor into (an IOC instance   │ │root)                                                    │ │[default: .]                                             │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--name-n<str>Restrict to a single pattern by name (default:   │ │all in the lock)                                 │ │--version-v<str>New pinned version to vendor│ │--source-s<str>Override the library source URI (git URL or local│ │path)                                            │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
update Usage: ibek pattern update [OPTIONS] [dest] Re-vendor a pattern to a new pinned version; refresh hashes + schema. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │dest<dir>The destination folder to vendor into (an IOC instance   │ │root)                                                    │ │[default: .]                                             │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--name-n<str>Restrict to a single pattern by name (default:   │ │all in the lock)                                 │ │--version-v<str>New pinned version to vendor│ │--source-s<str>Override the library source URI (git URL or local│ │path)                                            │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
check#
check Usage: ibek pattern check [OPTIONS] [dest] Verify vendored files match runtime-lock.yaml (vendor integrity). ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │dest<dir>The destination folder to vendor into (an IOC instance   │ │root)                                                    │ │[default: .]                                             │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--allow-dirty<bool>Downgrade hash mismatches to warnings (also    │ │enabled by IBEK_ALLOW_DIRTY=1)                 │ │--image<bool>Verify the patterns `ibek pattern install`     │ │installed in this image against the image lock │ │in $EPICS_ROOT/ibek-defs, instead of a         │ │destination's runtime-lock.yaml; DEST is not   │ │used                                           │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
check Usage: ibek pattern check [OPTIONS] [dest] Verify vendored files match runtime-lock.yaml (vendor integrity). ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │dest<dir>The destination folder to vendor into (an IOC instance   │ │root)                                                    │ │[default: .]                                             │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--allow-dirty<bool>Downgrade hash mismatches to warnings (also    │ │enabled by IBEK_ALLOW_DIRTY=1)                 │ │--image<bool>Verify the patterns `ibek pattern install`     │ │installed in this image against the image lock │ │in $EPICS_ROOT/ibek-defs, instead of a         │ │destination's runtime-lock.yaml; DEST is not   │ │used                                           │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
restore#
restore Usage: ibek pattern restore [OPTIONS] [dest] Revert vendored files to the version pinned in runtime-lock.yaml. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │dest<dir>The destination folder to vendor into (an IOC instance   │ │root)                                                    │ │[default: .]                                             │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--name-n<str>Restrict to a single pattern by name (default: all  │ │in the lock)                                        │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
restore Usage: ibek pattern restore [OPTIONS] [dest] Revert vendored files to the version pinned in runtime-lock.yaml. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │dest<dir>The destination folder to vendor into (an IOC instance   │ │root)                                                    │ │[default: .]                                             │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--name-n<str>Restrict to a single pattern by name (default: all  │ │in the lock)                                        │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
schema#
schema Usage: ibek pattern schema [OPTIONS] [dest] Generate the instance's ioc.schema.json and rewrite ioc.yaml's header. Fetches the published base schema for the instance's pinned image and merges the instance's vendored / local support entities into it. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │dest<dir>The destination folder to vendor into (an IOC instance   │ │root)                                                    │ │[default: .]                                             │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--schema-url<str>Generate the schema from this base-schema URL   │ │and, if that works, record the URL in           │ │runtime-lock.yaml, replacing the one derived    │ │from the image; may contain {registry},         │ │{project}, {project_encoded}, {name} and {tag}. │ │An empty string clears it                       │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯
schema Usage: ibek pattern schema [OPTIONS] [dest] Generate the instance's ioc.schema.json and rewrite ioc.yaml's header. Fetches the published base schema for the instance's pinned image and merges the instance's vendored / local support entities into it. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ │dest<dir>The destination folder to vendor into (an IOC instance   │ │root)                                                    │ │[default: .]                                             │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ │--schema-url<str>Generate the schema from this base-schema URL   │ │and, if that works, record the URL in           │ │runtime-lock.yaml, replacing the one derived    │ │from the image; may contain {registry},         │ │{project}, {project_encoded}, {name} and {tag}. │ │An empty string clears it                       │ │--help<bool>Show this message and exit.│ ╰──────────────────────────────────────────────────────────────────────────────╯