CLI Reference
यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।
CLI Reference
Section titled “CLI Reference”You probably don't need this
The IDE plugin handles everything automatically. Most users never touch the CLI. This page is for troubleshooting and advanced use cases.
When to Use the CLI
Section titled “When to Use the CLI”The CLI is useful when:
| Scenario | Why CLI? |
|---|---|
| IDE can’t find your JVM | Run galataj doctor to diagnose |
| Running without an IDE | Headless servers, CI pipelines |
| Docker / Remote JVMs | Manual attach to containerized apps |
| Debugging issues | Check status, view logs |
| Automation | Scripted profiling workflows |
Essential Commands
Section titled “Essential Commands”These are the commands you’ll actually use:
galataj doctor
Section titled “galataj doctor”Diagnose system issues. Run this first when something doesn’t work.
galataj doctor✓ Java: Found (11.0.19)✓ Controller JAR: Found✓ Agent JAR: Found✓ Controller: Running✓ Ports: Available (9876, 9877)galataj status
Section titled “galataj status”Check what’s running. Shows controller status and attached JVMs.
galataj statusController: Running (PID: 12345)HTTP Port: 9877TCP Port: 9876
Attached JVMs: 1- abc123 (PID: 67890) - MyAppgalataj jvms
Section titled “galataj jvms”List available JVMs. Shows all Java processes that can be profiled.
galataj jvmsFound 2 JVM(s):
1. com.example.MyApp ID: abc123 PID: 12345
2. order-service ID: def456 Environment: dockergalataj attach
Section titled “galataj attach”Attach profiler to a JVM. Use when the IDE can’t attach automatically.
# By PIDgalataj attach --pid 12345
# By JVM ID (from 'galataj jvms')galataj attach --jvm-id abc123galataj detach
Section titled “galataj detach”Stop profiling a JVM.
galataj detach --jvm-id abc123galataj version
Section titled “galataj version”Check CLI version.
galataj versionLicense Commands
Section titled “License Commands”Check License Status
Section titled “Check License Status”galataj license statusActivate Pro License
Section titled “Activate Pro License”galataj license login YOUR-LICENSE-KEYOpen Purchase Page
Section titled “Open Purchase Page”galataj license purchaseAdvanced Commands (rarely needed)
Controller Management
Section titled “Controller Management”Most users never need these - the IDE handles controller lifecycle automatically.
Start controller manually:
galataj controller startgalataj controller start --port 8888 # Custom portStop controller:
galataj controller stopEnvironment Variables
Section titled “Environment Variables”| Variable | Description | Default |
|---|---|---|
GALATAJ_CONTROLLER_PORT | HTTP API port | 9877 |
GALATAJ_CLI_PATH | CLI path for IDE | auto-detect |
Exit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Controller not running |
| 3 | JVM not found |
| 4 | Attach failed |
| 5 | License error |
JSON Output
Section titled “JSON Output”Most commands support --json for scripting:
galataj jvms --jsongalataj status --jsongalataj license status --jsonQuick Troubleshooting
Section titled “Quick Troubleshooting”| Problem | Command |
|---|---|
| Something’s broken | galataj doctor |
| Is controller running? | galataj status |
| Can’t find my JVM | galataj jvms |
| Need to attach manually | galataj attach --pid <pid> |
Next Steps
Section titled “Next Steps”- Troubleshooting Guide - Common issues and solutions
- Configuration Reference - All configuration options