Skip to main content

Forge Commands

The svantic forge subcommand generates tool specs and scaffolds agent services from OpenAPI specs or natural language prompts. All forge operations run locally — no mesh connection or authentication is required.

svantic forge tool

Generate tool specifications and TypeScript capability code from various sources.

From an OpenAPI Spec

This parses the OpenAPI document, converts operations to a Tool Spec YAML, and materializes TypeScript capability and trigger files:

Filter with --pick

Select specific API paths or function names:

Override the Domain Name

Output files become helpdesk.yaml, helpdesk_capabilities.ts, etc.

Set the Output Directory

List Operations (Preview)

Preview what an OpenAPI spec contains without generating:
Output:

From Natural Language (AI-Powered)

Use AI to generate tools from a description (requires GOOGLE_API_KEY):
Provide documentation for additional context:

forge tool Flag Reference


svantic forge agent

Scaffold a complete agent service from one or more tool specs.

From a Single Spec

Output:

With Full Project Files

Add --standalone to generate package.json, Dockerfile, and tsconfig.json:
Additional files:
After scaffolding:

Compose from Multiple Specs

Combine tools from multiple domains into one agent:

With Description and Port

From an OpenAPI Spec Directly

Pass an OpenAPI spec directly — forge converts it automatically:

forge agent Flag Reference


Examples

Generate Tools, Then Scaffold an Agent

AI-Powered End-to-End

Compose Multiple Domains