Skip to Content
CLI referenceCLI overview

GenSX CLI reference

The GenSX command-line interface (CLI) provides a set of commands to help you build, deploy, and manage your GenSX applications.

Installation

The GenSX CLI is included when you install the main GenSX package:

npm install -g gensx

Available commands

Auth

CommandDescription
gensx loginLog in to GenSX Cloud

Development

CommandDescription
gensx newCreate a new GenSX project
gensx startStart a local development server
gensx buildBuild a workflow for deployment

Deployment & Execution

CommandDescription
gensx deployDeploy a workflow to GenSX Cloud
gensx runRun a workflow on GenSX Cloud

Environment Management

CommandDescription
gensx envShow the current environment details
gensx env createCreate a new environment
gensx env lsList all environments for a project
gensx env selectSelect an environment as active
gensx env unselectUnselect the current environment

Common Workflows

Starting a New Project

# Log in to GenSX Cloud gensx login # Create a new project gensx new my-project cd my-project # Start local development gensx start src/workflows.tsx

Managing Environments

# Create and switch to a development environment gensx env create dev gensx env select dev # View current environment gensx env

Deploying and Running Workflows

# Build and deploy your workflow gensx deploy src/workflows.tsx # Run a workflow gensx run my-workflow --input '{"message": "Hello, world!"}'

For detailed information about each command, please refer to the corresponding documentation pages.

Last updated on