Toolsformatter

TypeScript for Developer Tools

Formats CLI commands with proper syntax, options, and help text based on user input

Try the tool

client runner

Formatted CLI Command

Run the tool to see output.

Examples

Basic Deployment Command

{
  "commandName": "deploy",
  "options": "--env <string> --force",
  "description": "Deploy the application",
  "requiredFlags": true
}

Expected output

Usage: deploy [options]

Deploy the application

Options:
  --env <string>  Environment to deploy to (required)
  --force         Force deployment without confirmation

Version Check Command

{
  "commandName": "version",
  "options": "-v, --verbose",
  "description": "Show version information"
}

Expected output

Usage: version [options]

Show version information

Options:
  -v, --verbose  Show detailed version info

How it works

The tool takes command structure parameters and generates standardized CLI output. It formats options with proper syntax, adds help text, and enforces required flag indicators. Output follows common CLI conventions for clarity and usability.

Related tools