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:
Foundry / Local Deployments - Standalone deployments on your local machine
Foundry / AWS Deployments - Distributed deployments in AWS
Trading Commands
Paper and live trading environments:
Trading / Local Deployments - Standalone deployments on your local machine (paper trading only)
Trading / AWS Deployments - Distributed deployments in AWS (paper trading only for self-managed)
Command Structure
All Datafye CLI commands follow this pattern:
Where:
<scenario>isfoundryortrading<environment>islocaloraws<command>isprovision,start,stop, ordeprovision
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
--nameand--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
--nameparameter (only one deployment per machine)Descriptor files specify what to provision
AWS Deployments
--namerequired (multiple deployments per AWS account)--profilerequired (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:
Related Documentation
The Datafye CLI - Conceptual overview of CLI usage and workflows
Installation - Install and configure the CLI
AWS Setup - Configure AWS access for cloud deployments
Deployment Descriptors - Learn how to configure your deployments
Private Cloud Deployments - Understand deployment models
Last updated: 2025-10-22
Last updated

