Skip to content

CLI Commands

The Uniflow CLI manages the full lifecycle of your CDP deployment.

Terminal window
npm install -g uniflow

Interactive setup wizard that generates uniflow.config.yaml.

Terminal window
uniflow init

Prompts for:

  • AWS region — deployment target (e.g. us-east-1)
  • Admin email — for Cognito user pool
  • Retention days — S3 raw event retention (default: 90)
  • Connectors — which destination connectors to enable
  • Stack name — CloudFormation stack name (default: UnifowStack)

Deploy or update the Uniflow stack on your AWS account.

Terminal window
uniflow deploy
uniflow deploy --skip-migrations
FlagDescription
--skip-migrationsSkip database migrations

This reads uniflow.config.yaml, runs any pending migrations, and executes cdk deploy with your configuration.

Check the health and status of your deployed stack.

Terminal window
uniflow status

Displays:

  • Stack status — e.g. CREATE_COMPLETE, UPDATE_COMPLETE
  • Region — AWS region
  • Last updated — timestamp of last deployment
  • Outputs — API endpoints, CloudFront URL, etc.

Status is color-coded: green for healthy, yellow for in-progress, red for failed.

Upgrade Uniflow to the latest version and redeploy.

Terminal window
uniflow upgrade

This command:

  1. Updates the @uniflow/cdk package to the latest version
  2. Runs any new migrations
  3. Redeploys the CDK stack

Tear down the Uniflow stack and remove all AWS resources.

Terminal window
uniflow destroy
uniflow destroy --force
FlagDescription
-f, --forceSkip confirmation prompt

S3 buckets with a RETAIN deletion policy are preserved even after destroy.

Start a local development environment using Docker and LocalStack.

Terminal window
uniflow dev
uniflow dev --full
FlagDescription
--fullInclude the audience-builder container

Prerequisites: Docker must be running.

This starts LocalStack with DynamoDB, S3, Kinesis, and SQS emulation. Outputs local endpoint URLs and resource names for testing.