Getting Started

Getting Started with JUDO CLI

This guide will help you install and start using JUDO CLI to manage your JUDO applications.

Prerequisites

Before using JUDO CLI, ensure you have the following installed:

Optional Tools

Installation

# Add the BlackBelt Technology tap
brew tap blackbelttechnology/tap

# Install JUDO CLI
brew install judo

# Verify installation
judo version

Manual Installation

Linux (x86_64)

curl -L https://github.com/BlackBeltTechnology/judo-cli/releases/latest/download/judo_Linux_x86_64.tar.gz | tar xz
sudo mv judo /usr/local/bin/

macOS (Intel)

curl -L https://github.com/BlackBeltTechnology/judo-cli/releases/latest/download/judo_Darwin_x86_64.tar.gz | tar xz
sudo mv judo /usr/local/bin/

macOS (Apple Silicon)

curl -L https://github.com/BlackBeltTechnology/judo-cli/releases/latest/download/judo_Darwin_arm64.tar.gz | tar xz
sudo mv judo /usr/local/bin/

Windows

Invoke-WebRequest -Uri "https://github.com/BlackBeltTechnology/judo-cli/releases/latest/download/judo_Windows_x86_64.zip" -OutFile "judo.zip"
Expand-Archive judo.zip -DestinationPath .
# Move judo.exe to a directory in your PATH

First Steps

1. Verify Installation

judo version

This should display the JUDO CLI version and build information.

2. Check Available Commands

judo help

3. Navigate to Your JUDO Project

cd /path/to/your/judo-project

4. Build Your Application

# Full build (recommended for first time)
judo build

# Quick build (app module only)
judo build -a

# Frontend only
judo build -f

5. Start Your Application

# Start all services
judo start

# Check status
judo status

6. Access Your Application

Once started, your application will typically be available at:

Configuration

JUDO CLI uses configuration files to manage different environments:

Example Configuration

Create a judo.properties file in your project root:

# Application settings
app.name=my-judo-app
app.schema=myapp

# Database settings
database.type=postgresql
database.host=localhost
database.port=5432
database.name=myapp_db

# Runtime mode
runtime.mode=karaf

# Ports
karaf.port=8080
keycloak.port=8180
postgres.port=5432

Next Steps

Troubleshooting

Common Issues

Docker not running

# Check Docker status
docker info

# Start Docker service (Linux)
sudo systemctl start docker

Port conflicts

# Check what's using a port
lsof -i :8080

# Stop conflicting services
judo stop

Build failures

# Clean and rebuild
judo clean
judo build

Getting Help