CLI Reference

Complete command-line interface reference for the dxflow engine with detailed usage examples and options

dxflow provides a comprehensive command-line interface that adapts to your environment, supporting local execution, remote server management, and automatic instant engine spawning for seamless operations.

Two Execution Types: Commands run either locally on your machine or remotely on configured servers. Some commands also support automatic instant engine spawning for zero-setup operations.

Command Execution Types

Local Commands

Always Local

  • Configuration management
  • Engine lifecycle control
  • License operations
  • System information

Remote Commands

Server Infrastructure

  • Engine monitoring
  • Bridge management
  • Shell operations
  • Proxy control

Local Commands

Commands that always execute on your local machine for configuration and system management.

Local Execution: These commands run locally regardless of any remote configuration, managing your local dxflow installation and settings.

Available Commands

  • config get - Get configuration value
  • config set - Set configuration value
  • config unset - Remove configuration value
  • engine info - Display local engine information
  • engine token - Generate authentication token
  • engine update - Update engine to the latest version
  • key generate - Generate RSA key pair for authentication
  • boot up - Start the engine with configured servers
  • boot down - Gracefully shut down the running engine instance
  • license activate - Activate license
  • license deactivate - Revert to the built-in general license
  • license create - Create license
  • license info - Display license information

::

Common Operations

# Configuration management
dxflow config set connection-address "https://server.com"
dxflow config get connection-address

# Engine lifecycle
dxflow boot up --daemon
dxflow boot down

# License management
dxflow license info

Remote Commands

Commands that execute on configured remote dxflow servers for distributed infrastructure management.

Remote Execution: These commands require server configuration and always target the remote server when a connection is configured.

Available Commands

  • engine ping - Test connection to remote engine
  • engine stats - Display comprehensive engine statistics and resource usage
  • engine healthcheck - Check remote engine health status
  • bridge list - List all remote bridge instances
  • bridge create - Create new remote bridge instance
  • bridge connect - Connect to remote bridge instance
  • bridge disconnect - Disconnect from remote bridge instance
  • bridge remove - Remove remote bridge instance
  • bridge prune - Remove all remote bridge instances to free up resources
  • shell list - List all remote shell instances
  • shell create - Create new remote shell instance
  • shell connect - Connect to remote shell instance
  • shell remove - Remove remote shell instance
  • proxy list - List all remote proxy instances
  • proxy remove - Remove remote proxy instance
  • proxy prune - Remove all remote proxy instances to free up resources
  • key register - Register a new authentication key
  • key unregister - Remove an authentication key
  • key list - List all registered keys
  • artifact list - List files and directories
  • artifact create - Create files or directories
  • artifact delete - Delete files or directories
  • artifact rename - Rename/move files or directories
  • artifact upload - Upload files to remote storage
  • artifact download - Download files from remote storage
  • artifact share - Share files or directories
  • artifact zip - Compress files or directories into ZIP archives
  • artifact unzip - Extract ZIP archives
  • workflow list - List all workflows
  • workflow create - Create a new workflow
  • workflow remove - Remove a workflow
  • workflow start - Start all services defined in the workflow
  • workflow stop - Gracefully stop all running containers
  • workflow logs - View logs from workflow containers
  • workflow events - Monitor workflow events
  • agent create - Create an agent session for a workflow
  • agent prompt - Advance an agent session one turn
  • agent list - List agent sessions with their latest model
  • agent inspect - Show a session's workflow, model, and usage
  • agent remove - Remove an agent session

::

Remote Setup

# Configure connection
dxflow config set connection-address "https://prod.server.com"
dxflow config set connection-key "/secure/prod-key.pem"

# Test connection
dxflow engine ping

# Manage remote resources
dxflow shell create production
dxflow bridge list
Advanced Configuration: See Remoting for detailed remote setup, authentication, profiles, and multi-environment management.

Instant Engine Support

Some commands support automatic instant engine spawning for local execution when no persistent engine is running.

Smart Execution: These commands adapt to your environment - remote when configured, local engine when available, or automatic instant engine spawning for local execution only.

How It Works

Instant engine commands follow this execution priority:

  1. Remote Configured? → Execute on remote server (using server's engine)
  2. Local Engine Running? → Use local persistent engine
  3. Otherwise → Spawn temporary instant engine locally
Important: Instant engines only work for local execution. Remote commands always use the server's running engine, never instant engines.

An instant engine lives exactly as long as the command that spawned it. Commands whose work keeps running past that point require a persistent engine, so start one with boot up first.

Commands with Instant Support

  • key list - List all registered authentication keys
  • key register - Register new authentication key
  • key unregister - Remove authentication key
  • artifact list - List files and directories
  • artifact create - Create files or directories
  • artifact delete - Delete files or directories
  • artifact rename - Rename/move files or directories
  • artifact upload - Upload files to remote storage
  • artifact download - Download files from remote storage
  • artifact share - Share files or directories
  • artifact zip - Compress files or directories into ZIP archives
  • artifact unzip - Extract ZIP archives
  • workflow list - List all workflows
  • workflow remove - Remove workflow
  • workflow stop - Gracefully stop all running containers
  • workflow logs - View logs from workflow containers
  • workflow events - Monitor workflow events

::


Commands

CommandDescriptionHelp
bootEngine lifecycle controldxflow boot --help
keyAuthentication key managementdxflow key --help
configConfig controldxflow config --help
licenseLicense managementdxflow license --help
engineEngine managementdxflow engine --help
shellShell managementdxflow shell --help
workflowWorkflow managementdxflow workflow --help
artifactArtifact managementdxflow artifact --help
proxyProxy managementdxflow proxy --help
bridgeBridge managementdxflow bridge --help

Global Options

FlagShorthandDescriptionTypeDefault
--config-profile-CSpecify the config profilestringdefault
--log-level-LSpecify the log levelstringinfo
--no-color-NDisable color outputboolfalse

Command Capabilities Matrix

Complete command capabilities overview - Local execution, Remote server support, and Instant engine spawning.

CategoryCommandLocalRemoteInstant
Configconfig get--
Configconfig set--
Configconfig unset--
Licenselicense activate--
Licenselicense deactivate--
Licenselicense create--
Licenselicense info--
Engineengine info--
Engineengine token--
Engineengine update--
Engineboot up--
Engineboot down--
Keykey generate--
Engineping-
Enginestats-
Enginehealthcheck-
Bridgebridge list-
Bridgebridge create-
Bridgebridge connect-
Bridgebridge disconnect-
Bridgebridge remove-
Bridgebridge prune-
Shellshell list-
Shellshell create-
Shellshell connect-
Shellshell remove-
Proxyproxy list-
Proxyproxy remove-
Proxyproxy prune-
Keykey register
Keykey unregister
Keykey list
Artifactartifact list
Artifactartifact create
Artifactartifact delete
Artifactartifact rename
Artifactartifact upload
Artifactartifact download
Artifactartifact share
Artifactartifact zip
Artifactartifact unzip
Workflowworkflow list
Workflowworkflow create-
Workflowworkflow remove
Workflowworkflow start-
Workflowworkflow stop
Workflowworkflow logs
Workflowworkflow events