For the complete documentation index, see llms.txt. This page is also available as Markdown.

Version Set CLI Reference

Complete forge version-set, forge service, and forge asset command reference for listing, pinning, promoting, and rolling back Amigo service version sets.

This page is the Agent Forge CLI reference for working with version sets: the forge version-set commands that create, compare, promote, and roll back version sets, plus the forge service and forge asset commands you use to discover services and asset versions before pinning them. For the concepts behind version sets and the recommended promotion workflow, see Version Sets & Promotion.

Dry-run by default. All mutating commands show what would change without --apply. Add --apply to execute.

Managing Version Sets (forge version-set)

List Version Sets

forge version-set list MyService -e production

# JSON output for scripting
forge version-set list MyService -e production --json

Shows all version sets for a service with their pinned versions and LLM preferences.

Create/Update a Version Set

# Create with unpinned versions (dev only)
forge version-set upsert personal-alex -s MyService -e dogfood --apply

# Create with pinned versions (resolves current latest)
forge version-set upsert personal-alex -s MyService -e dogfood --latest --apply

# Create by copying from another version set
forge version-set upsert preview -s MyService -e production --copy-from test --apply

# Pin specific versions
forge version-set upsert preview -s MyService -e production -a 5 -g 3 --apply

Version Existence Validation

When pinning to specific versions using -a (agent) or -g (context graph) flags, the CLI validates that those versions actually exist before applying the change.

For advanced users who need to bypass this validation (for example, in automation scripts where versions may be created in parallel), use the --skip-version-check flag.

Compare Version Sets

Shows a side-by-side comparison of two version sets, highlighting differences.

Promote Version Sets

Auto-backup. When you promote to release, a backup is automatically created as release-previous. Use --no-backup to skip this safety measure.

Rollback Version Sets

If a release causes issues, quickly revert to the previous configuration.

This is equivalent to forge version-set promote release-previous release, but makes the intent clearer and shows a comparison of the configurations.

Show Version Set Details

Delete a Version Set

Discovering Services (forge service)

Before working with version sets, you may need to discover what services exist and their current configuration. Use forge service commands to list and inspect services.

List Services

Output shows services with their tags and version set counts:

Show Service Details

Output includes linked assets and version set configuration:

Check Service Health Status

Monitor the health of services across your organization to catch configuration issues.

Detected Issues:

  • Version set drift: preview and release configurations differ.

  • Missing version sets: production services missing preview or release.

  • Unpinned versions: production services with non-edge version sets using latest.

Example Output:

Discovery workflow: use forge service list to find services, forge service status to check health, and forge service show to inspect configuration before making changes with forge version-set commands.

Discovering Asset Versions (forge asset)

Before pinning specific versions in a version set, you need to know what versions exist. Use forge asset commands to discover agent and context graph versions.

List Agent Versions

Output shows version numbers with creation timestamps:

Sorting and pagination. The --newest-first / -d flag sorts versions descending. When --limit exceeds the API's 10-per-page maximum, the CLI automatically paginates using continuation_token to fetch all requested results. Available on all version-list commands (agent, context-graph, behavior).

List Context Graph Versions

Output includes a state count for each version:

Show Version Details

Check Behavior Invocations

Workflow: Pin Discovered Versions

Tip: use forge version-set upsert --latest to automatically resolve and pin the current latest versions without looking them up manually.

Pre-Flight Validation

All mutating version-set commands (upsert, promote, delete) run pre-flight validation before applying changes. Configurations are validated before they reach the remote API.

Version-set-specific rules:

Rule
Scope
Behavior

Version existence check

All upsert commands

Error if a pinned agent or context graph version doesn't exist (bypass with --skip-version-check, see above)

Pinned versions required

Production services

Error if agent/context graph version is null

Cannot delete preview/release

Production services

Error blocks deletion

Preview required for release promotion

Production services

Error if preview doesn't exist

Channel and LLM rules (voice-optimized models, cost tiers, regional availability) are driven by the service's tags. See Channel Tagging: Validation for the full rules table.

Example: Blocked Mutation

Example: Warning (Non-blocking)

Warnings are displayed but don't block the operation.

Version Sets & PromotionChannel Tagging System

Last updated

Was this helpful?