Skip to content

GTC CLI Overview

The GTC CLI (gtc) is the primary command-line interface for the Greentic platform. It provides commands for:

  • Creating and managing bundles
  • Setting up providers
  • Running the runtime server
  • Building and validating packs/flows
Terminal window
cargo install greentic-cli

Verify installation:

Terminal window
gtc --version

The gtc binary composes subcommands from multiple repos:

CommandSource RepoPurpose
gtc wizardgreentic-devBundle creation wizard
gtc setupgreentic-setupProvider setup/configuration
gtc startgreentic-startRuntime server
gtc packgreentic-packPack building
gtc flowgreentic-flowFlow validation
Terminal window
gtc [OPTIONS] <COMMAND>
Options:
-v, --verbose Enable verbose output
-q, --quiet Suppress non-essential output
--config <PATH> Path to config file
-h, --help Print help
-V, --version Print version
CommandDescription
wizardCreate a new bundle from wizard answers
setupConfigure providers in a bundle
startStart the runtime server
packPack management (build, verify, publish)
flowFlow management (validate, doctor)
Terminal window
# 1. Create bundle from wizard
gtc wizard --answers wizard-answers.yaml
# 2. Setup providers (interactive)
gtc setup ./my-bundle
# 3. Start the runtime
gtc start ./my-bundle
Terminal window
# Validate flows
gtc flow doctor ./my-bundle/apps/my-app/flows/
# Build a pack
gtc pack build ./my-pack/
# Start with verbose logging
gtc start ./my-bundle --verbose
# Start with ngrok tunnel
gtc start ./my-bundle --ngrok on
Terminal window
# Setup with answers file (non-interactive)
gtc setup --answers production-answers.json ./my-bundle
# Start without tunnels
gtc start ./my-bundle --cloudflared off --ngrok off

GTC can use a configuration file (greentic.toml):

greentic.toml
[runtime]
host = "0.0.0.0"
port = 8080
[nats]
enabled = true
url = "nats://localhost:4222"
[logging]
level = "info"
format = "json"
[telemetry]
enabled = true
otlp_endpoint = "http://localhost:4317"
VariableDescriptionDefault
GREENTIC_LOG_LEVELLog verbosityinfo
GREENTIC_CONFIGConfig file pathgreentic.toml
GREENTIC_NATS_URLNATS server URLnats://localhost:4222
GREENTIC_REDIS_URLRedis URLredis://localhost:6379
CodeMeaning
0Success
1General error
2Configuration error
3Runtime error
4Validation error
Terminal window
# General help
gtc --help
# Command-specific help
gtc wizard --help
gtc setup --help
gtc start --help