Interactive Session

Interactive Session Mode

JUDO CLI includes a powerful interactive session mode that provides enhanced productivity features for development workflows.

Starting a Session

judo session

Features

Command History

Auto-completion

Dynamic Service Status

The prompt shows real-time status of your JUDO services:

judo [βš™οΈkaraf:βœ“ πŸ”keycloak:βœ— 🐘postgres:βœ“]> 

Status Indicators:

Enhanced Help System

Session Commands

In addition to all regular JUDO commands, session mode provides special commands:

CommandDescription
helpShow session help with all available commands
exit or quitExit the interactive session
clearClear the terminal screen
historyShow command history for current session
statusShow detailed session and project information
doctorRun system health check with verbose output

Usage Examples

Basic Commands

# Within session
help                    # Show all commands
build -f               # Build frontend
start --skip-keycloak  # Start without Keycloak
status                 # Check service status

Tab Completion Examples

History Features

history                # Show recent commands
<Ctrl+R>build          # Search for commands containing "build"
!!                     # Repeat last command
!build                 # Repeat last command starting with "build"

Development Workflows

Quick Development Cycle

judo session
> reckless             # Fast build and start
> log -f               # Follow logs
> <Ctrl+C>             # Stop log following
> build -a             # Rebuild app module
> status               # Check services

Frontend Development

judo session
> build -f -q          # Quick frontend build
> start --skip-keycloak # Start without auth
> build -f -q          # Rebuild as needed

Database Operations

judo session
> dump                 # Create backup
> clean               # Clean environment
> import               # Restore from backup
> status               # Verify services

Advanced Features

Execution Feedback

Commands show duration and success/failure status:

> build -f
βœ“ Command completed in 2.34s

> start
βœ— Command failed in 0.12s (exit code 1)

Context Awareness

Session Statistics

> status
Session Duration: 15m 23s
Commands Executed: 12
Project: MyProject (karaf runtime)
Services: karaf(βœ“) postgres(βœ“) keycloak(βœ—)

Keyboard Shortcuts

ShortcutAction
TabAuto-complete command/flag
Ctrl+RSearch command history
Ctrl+CCancel current input
Ctrl+DExit session
Ctrl+LClear screen
↑/↓Navigate command history

Tips and Best Practices

  1. Use Tab Completion: Always use tab completion to avoid typos and discover available options

  2. Leverage History: Use !! and !<prefix> to quickly repeat commands

  3. Monitor Status: Keep an eye on the service status indicators in the prompt

  4. Use Session Commands: Take advantage of clear, history, and status for better workflow

  5. Quick Help: Use <command>? for quick help without leaving the session

  6. Development Patterns: Develop muscle memory for common command sequences like build -f -q for frontend development

Troubleshooting

Session Won’t Start

Auto-completion Not Working

History Not Persisting

Exiting the Session

Always exit properly to save history and session state:

> exit
# or
> quit
# or press Ctrl+D