CLI & Remote Agents
CLI Definitions & File Operations
The CLI separates definition management into two broad workflows:
- inspect or fetch one definition with
unmeshed process ... - bulk upsert many definitions or schedules with
unmeshed update ...
Inspect and download process definitions
Get one definition
Use process get to fetch a single process definition and print a summary:
Current behavior:
--namespacedefaults todefault- omit
--versionto fetch the latest version
List definitions
Use:
The CLI prints a table that includes the process name, namespace, version, type, and created timestamp.
Download a definition to a file
Use:
If you omit --out, the CLI writes a filename based on the process name, namespace, and version label.
Delete a definition
Use:
Without --version-only, the delete request targets the definition more broadly. Use --version-only when you want to remove just one version.
Bulk update process definitions
Use update pd for process definitions:
Current behavior:
- accepts a single file or a directory
- supports
.json,.yaml, and.yml - when you pass a directory, the CLI reads matching files in that directory only
.resolves to the current working directory
The CLI loads each file, converts YAML to JSON when needed, and sends one bulk upsert request to /api/processDefinitions/bulk/upsert.
Bulk update schedules
Use update sch for schedules:
The file handling rules are the same as update pd, but the CLI sends the payload to /api/schedules/bulk/upsert.
Upload files and directories
Use upload when definitions depend on scripts or other files that must exist on the Unmeshed file store:
Current behavior:
- source can be a file, a directory, or
. - destination must begin with
/ - directories are uploaded recursively
- the CLI creates missing destination folders on the server before uploading the files
- uploads preserve the relative structure under the source directory
This is particularly useful before a bulk definition update if your steps reference scripts or assets under a known server path.
Deployment sequence
A common sequence is:
- Upload supporting files
- Bulk update process definitions
- Bulk update schedules
Example:
For multi-environment rollout patterns, continue with: