Code for IBM i CLI & BridgeA lightweight, secure loopback bridge and companion CLI enabling external automation tools, terminal scripts, and AI coding agents to programmatically invoke actions, manage IFS deployments, inspect EVFEVENT compile diagnostics, and execute remote commands via the Code for IBM i extension without manual UI interaction. Key Features
Getting Started1. Using the Command-Line Interface (
|
| Command | Description |
|---|---|
codefori status |
Display Bridge server health, port, and IBM i connection state |
codefori list-actions |
List all available Code for IBM i actions for the workspace |
codefori run-action --name "CRTBNDRPG" |
Execute an action by name |
codefori deploy --files "src/prog.rpgle" |
Deploy selected files to remote IFS |
codefori diagnostics |
Retrieve compiler errors and diagnostics |
codefori run-cl --command "WRKSYSSTS" |
Run an IBM i CL command (prompts or requires --confirm) |
Extension Settings
All settings can be configured via the visual Code for IBM i Bridge Settings page or in VS Code Settings (Ctrl+,):
| Setting | Default | Description |
|---|---|---|
code-for-ibmi-bridge.port |
0 |
Port for the HTTP Bridge server (0 for ephemeral dynamic allocation) |
code-for-ibmi-bridge.autoStart |
true |
Automatically start the Bridge HTTP server on activation |
code-for-ibmi-bridge.cliMode |
"auto" |
CLI interaction mode (auto, npm, curl) |
code-for-ibmi-bridge.promptOnMissingNpm |
false |
Prompt regarding npm package installation if Node.js is detected |
code-for-ibmi-bridge.security.policy |
"prompt" |
Policy for destructive commands (prompt, block, modal, allow) |
code-for-ibmi-bridge.security.qshPolicy |
"block" |
Policy for QSH shell execution (block, prompt, modal, allow) |
code-for-ibmi-bridge.security.pasePolicy |
"block" |
Policy for PASE shell execution (block, prompt, modal, allow) |
code-for-ibmi-bridge.security.clPolicy |
"prompt" |
Policy for direct CL commands (prompt, block, modal, allow) |
code-for-ibmi-bridge.security.deployPolicy |
"prompt" |
Policy for workspace IFS deployments (prompt, modal, block, allow) |
code-for-ibmi-bridge.security.promptTimeoutSeconds |
60 |
Timeout in seconds for interactive user confirmation |
License
MIT