Skip to content

conductor-oss/conductor-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI for Conductor

Conductor is the leading open-source orchestration platform allowing developers to build highly scalable distributed applications.

Check out the official documentation for Conductor.

This repository provides a Java client for the Orkes Conductor Server.

⭐ Conductor OSS

Show support for the Conductor OSS. Please help spread the awareness by starring Conductor repo.

GitHub stars

Server Commands

Work with a server

# cdt works with the environment variables to connect to the server
export CONDUCTOR_SERVER_URL=http://server:port/api

########################################
### REQUIRED when using Orkes hosted ###
########################################
# When using an Orkes server which requires api key/secret, set the following env variables 
export CONDUCTOR_AUTH_KEY=api_key
export CONDUCTOR_AUTH_SECRET=api_key_secret

# Optionally, you can copy the auth token from the conductor UI and export it as such (useful for quick testing)
export CONDUCTOR_AUTH_TOKEN=auth_token

Workflow Metadata Management

# List the workflows on the server
cdt workflow list

# Get the workflows definition - fetches the latest version
cdt workflow get <workflowname>

# add a version with a comma in the name to get the specific version
cdt workflow get <workflowname>,<verion>

# You can use quotes for workflow name if the name contains spaces, comma or special characters
cdt workflow get "<workflowname with spaces>"

Create a workflow

# Register a workflow stored in the file
cdt workflow create /path/to/workflow_definition.json --force # use --force to overwrite existing   

Code Generation

# Generate a project of type (worker/application) in a particular language from a boilerplate (default is core)
# See https://github.com/conductor-sdk/boilerplates for available boilerplates
ccli code generate -n <name> -l <language> -t <type> -b <boilerplate>

Example:

ccli code generate -n myapp -l javascript -t worker

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published