Commands

This section provides detailed reference documentation for all Datafye CLI commands.

Command Organization

Commands are organized by scenario (Foundry or Trading), then by environment (Local or AWS):

Foundry Commands

Development and backtesting environments:

Trading Commands

Paper and live trading environments:

For live trading, you'll need a Datafye Managed deployment provisioned by Datafye Ops. Contact Datafye to request a managed deployment.

Command Structure

All Datafye CLI commands follow this pattern:

Where:

  • <scenario> is foundry or trading

  • <environment> is local or aws

  • <command> is provision, start, stop, or deprovision

Examples

Core Commands

Every deployment supports these four lifecycle commands:

provision

Create a new deployment from descriptor files. This allocates infrastructure, deploys services, and configures connectivity.

  • Local: No name required, uses Docker

  • AWS: Requires --name and --profile, provisions EC2/VPC resources

start

Start a stopped deployment. Much faster than provisioning since infrastructure already exists.

  • Starts Docker containers (local) or EC2 instances (AWS)

  • Re-establishes connections to data providers and brokers

  • Typically completes in under 1-5 minutes

stop

Stop a running deployment without removing it. Frees compute resources while preserving configuration and data.

  • Stops Docker containers (local) or EC2 instances (AWS)

  • Disconnects from data providers and brokers

  • Configuration and data remain intact for later restart

  • Reduces costs (AWS: only pay for storage while stopped)

deprovision

Completely remove a deployment. All resources, data, and configuration are permanently deleted.

  • Irreversible - all data is lost

  • Removes Docker containers/volumes (local) or EC2/VPC resources (AWS)

  • For trading deployments: does NOT close broker positions or cancel orders

Parameter Differences

Local Deployments

  • No --name parameter (only one deployment per machine)

  • Descriptor files specify what to provision

AWS Deployments

  • --name required (multiple deployments per AWS account)

  • --profile required (AWS CLI profile to use)

  • Optional: --region, --cidr

Descriptor Parameters

All provision commands require descriptor files. You can provide them in two ways:

Option 1: Combined descriptor

Option 2: Separate descriptors

Scenarios and Required Descriptors

Foundry: Data Cloud Only

  • Required: Data descriptor only

  • Provisions: Data Cloud

Foundry: Full Stack

  • Required: Data + Algo descriptors

  • Provisions: Data Cloud, Algo Container, Backtesting Engine, MCP Server

Trading: Data Cloud + Broker

  • Required: Data + Broker descriptors

  • Provisions: Data Cloud, Broker Connector

Trading: Full Stack

  • Required: Data + Algo + Broker descriptors

  • Provisions: Data Cloud, Algo Container, Broker Connector, MCP Server

Getting Help

For detailed help on any command:


Last updated: 2025-10-22

Last updated