Skip to content

CLI Reference

The intu CLI is the primary interface for creating, running, and managing Intuware projects. Every command supports the global flags listed at the bottom of this page.

Scaffold a new Intuware project with the standard directory structure, starter configuration, and dependencies.

FlagDescriptionDefault
--dir <path>Target directory for the new project./<project-name>

The command generates intu.yaml, tsconfig.json, a sample channel, and runs npm install automatically.

Terminal window
intu init my-engine
intu init my-engine --dir /opt/integrations/my-engine

Alias: intu channel <channel-name>

Create a new channel directory under channels/ containing the three starter files:

FilePurpose
channel.yamlChannel configuration (listeners, destinations, pipeline)
transformer.tsTypeScript transformer function
validator.tsTypeScript validation function
Terminal window
intu c adt-feed
intu channel patient-sync

Start the Intuware engine. TypeScript files are compiled automatically on startup, and hot-reload watches for file changes so the engine restarts when you edit channel config or code.

Terminal window
intu serve
intu serve --profile dev
intu serve --verbose

Validate every channel.yaml and intu.yaml file in the project against their JSON schemas. Exits with a non-zero code if any file is invalid.

Terminal window
intu validate

Compile all TypeScript files in the project without starting the engine. Useful in Docker builds and CI pipelines where you need a compile step separated from runtime.

Terminal window
intu build

Import a Mirth Connect channel export XML and generate the equivalent Intuware channel directory with channel.yaml and transformer.ts.

Terminal window
intu import mirth exported-channels.xml

List stored messages with optional filters.

FlagDescriptionDefault
--channel <id>Filter by channel IDall channels
--status <status>Filter by message status (received, transformed, sent, error)all statuses
--limit <n>Maximum number of messages to return50
Terminal window
intu message list
intu message list --channel adt-feed --status error --limit 20

Retrieve a single stored message by ID, including the raw payload at every pipeline stage.

Terminal window
intu message get msg_01HQXK9V7W

Re-inject a stored message back into its channel pipeline from the beginning.

Terminal window
intu message reprocess msg_01HQXK9V7W

Print the installed CLI version and exit.

Terminal window
intu version

These flags are accepted by every command:

FlagDescriptionDefault
--profile <name>Activate a configuration profile (dev, prod, or a custom name)none
--config <path>Path to the root intu.yaml file./intu.yaml
--verboseEnable verbose logging outputfalse
--quietSuppress all non-error outputfalse
Terminal window
intu serve --profile prod --config /etc/intu/intu.yaml --verbose

Every project scaffolded with intu init includes these npm scripts in package.json:

ScriptCommandDescription
npm run devintu serve --profile devStart with the dev profile
npm run serveintu serveStart with the default profile
npm startintu serveStart with the default profile
npm run buildintu buildCompile TypeScript only
CommandDescription
intu init <name>Scaffold a new project
intu c <name>Create a channel
intu serveStart the engine (hot-reload)
intu validateValidate YAML config files
intu buildCompile TypeScript
intu import mirth <xml>Import Mirth Connect channel
intu message listList stored messages
intu message get <id>Get a message
intu message reprocess <id>Reprocess a message
intu versionPrint version