onglx-deploy init

Initialize a new deployment configuration

Core Command
Configuration

Description

Initialize a new deployment configuration with support for multi-cloud providers. This command creates a deploy.yml configuration file and registers the deployment with proper validation for project names, regions, and cloud provider credentials.

Syntax

onglx-deploy init [flags]

Options

--host

Cloud provider (aws, gcp, or multi)

Required

Required
--region

Default region for resources

Defaults to us-east-1 for AWS, us-central1 for GCP

Optional
--profile

Cloud CLI profile to use

Uses default profile if not specified

Optional
--name

Project name (defaults to current directory)

Must be DNS-compliant

Optional

Examples

Initialize AWS deployment

Terminal - OnglX Deploy
$ onglx-deploy init --host aws --region us-east-1
✓ Initialized deployment: my-project
✓ Provider: aws
✓ Region: us-east-1
✓ Config: deploy.yml

Initialize GCP deployment

Terminal - OnglX Deploy
$ onglx-deploy init --host gcp --region us-central1 --profile my-gcp-profile
✓ Initialized deployment: my-project
✓ Provider: gcp
✓ Region: us-central1
✓ Profile: my-gcp-profile
✓ Config: deploy.yml

Multi-cloud setup

Terminal - OnglX Deploy
$ onglx-deploy init --host multi --name my-project
Multi-cloud selected, recommending aws: broader service availability
✓ Initialized deployment: my-project
✓ Provider: aws
✓ Region: us-east-1
✓ Config: deploy.yml

Prerequisites

AWS Setup
AWS CLI configured
Valid AWS credentials
Bedrock access permissions
GCP Setup
GCP support coming soon
gcloud CLI configured
Valid service account

What It Creates

deploy.yml

name: my-project
host: aws
region: us-east-1
components: []
created_at: 2024-01-01T00:00:00Z

The configuration file that defines your deployment. This file is used by all other commands.

Next Steps

After initialization, you can:

  • • Add components: onglx-deploy add inference --component api --type openai
  • • Plan deployment: onglx-deploy plan
  • • Deploy: onglx-deploy deploy