Skip to main content

Overview

The dorgu persona command group manages ApplicationPersona custom resources. An ApplicationPersona is a Kubernetes CRD that captures the operational identity of your application — its resource requirements, scaling behavior, health characteristics, and deployment preferences — as a declarative, version-controlled resource. The workflow is: generate a persona YAML from your application source, apply it to the cluster, and check status to verify the operator has reconciled it.

persona generate

Synopsis

dorgu persona generate [path] [flags]
Analyze an application directory and produce an ApplicationPersona YAML manifest. The path should point to a directory containing a Dockerfile or docker-compose.yml. Defaults to . if omitted.

Flags

FlagTypeDefaultDescription
-n, --namespacestringdefaultTarget Kubernetes namespace
-o, --outputstring.Output directory for persona.yaml
--dry-runboolfalsePrint to stdout without writing files
--llm-providerstringLLM provider for analysis (openai, anthropic, gemini, ollama)
--namestringauto-detectedOverride application name

Examples

# Generate persona for the current directory
dorgu persona generate

# Generate from a specific app directory
dorgu persona generate ./my-app

# Preview without writing files
dorgu persona generate . --dry-run

# Custom output directory and namespace
dorgu persona generate ./my-app -o ./manifests -n production

# Use LLM-enhanced analysis
dorgu persona generate . --llm-provider openai

# Override the application name
dorgu persona generate . --name order-service

persona apply

Synopsis

dorgu persona apply [path] [flags]
Analyze an application and apply the resulting ApplicationPersona directly to the cluster. This combines the generate and kubectl apply steps into a single command. The path defaults to . if omitted.

Flags

FlagTypeDefaultDescription
-n, --namespacestringdefaultTarget Kubernetes namespace
--llm-providerstringLLM provider for analysis (openai, anthropic, gemini, ollama)
--namestringauto-detectedOverride application name

Examples

# Analyze and apply persona for the current directory
dorgu persona apply

# Apply from a specific directory to a namespace
dorgu persona apply ./my-app -n staging

# Apply with LLM-enhanced analysis
dorgu persona apply . --llm-provider anthropic

# Apply with a custom name
dorgu persona apply . --name payment-api -n commerce

persona status

Synopsis

dorgu persona status <name> [flags]
Check the reconciliation status of an ApplicationPersona by name. Requires exactly one argument: the persona name.

Flags

FlagTypeDefaultDescription
-n, --namespacestringdefaultKubernetes namespace to query

Examples

# Check status of a persona in the default namespace
dorgu persona status my-app

# Check status in a specific namespace
dorgu persona status order-service -n production

Status fields

The persona status command reports the following fields from the ApplicationPersona resource:
FieldValuesDescription
.status.phasePending, Active, Degraded, UnknownCurrent reconciliation phase
.status.validation.passedtrue / falseWhether the persona passed validation
.status.validation.issueslist of stringsValidation issues found by the operator
.status.health.statusstringOverall health status of the application
.status.health.replicasintegerNumber of running replicas observed
Requires the Dorgu Operator installed on the cluster with the ApplicationPersona CRD registered. See the Operator installation guide for setup instructions.