Skip to content

augment

Description

Commands for augmenting project components.

Available Commands: logging: Add logging handlers to AEA configuration customs: Augment customs components with OpenAPI3 handlers

Usage

adev augment [OPTIONS] [ARGS]

Additionally, you can view the parameters for the command using:

adev augment --help

Connection

Augment an AEA configuration with connections.

Customs

Augment a customs component with OpenAPI3 handlers.

Required Parameters: component_type: Type of component to augment (currently only openapi3)

Optional Parameters: auto_confirm: Skip confirmation prompts. Default: False use_daos: Include DAO integration in handlers. Default: False

Usage: Basic OpenAPI3 augmentation: adev augment customs openapi3

With DAO integration:
    adev augment customs openapi3 --use-daos

Skip confirmations:
    adev augment customs openapi3 --auto-confirm

Notes

- Requires component.yaml with api_spec field
- Generates/updates handlers.py with OpenAPI endpoints
- Creates necessary dialogue classes
- Optionally adds DAO integration
- Shows diff before updating existing handlers

Logging

Augment AEA logging configuration with additional handlers.

Required Parameters: handlers: One or more handlers to add (console, http, logfile)

Usage: Add console handler: adev augment logging console

Add multiple handlers:
    adev augment logging console http logfile

Notes

- Modifies aea-config.yaml logging configuration
- Available handlers:
    - console: Rich console output
    - http: HTTP POST logging to server
    - logfile: File-based logging
- Each handler can be configured via environment variables