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

iai macros update

Update a macro (creates a new version)

Synopsis

Update a macro by creating a new version with updated content.

This creates a new version of the macro using the content from the provided file. The previous versions are preserved and can still be accessed by version number.

Each macro is a YAML mapping with the reply text under 'text'.

Run iai macros schema to see the current field definitions.

Example

# disclaimer.yaml
text: |
  **Disclaimer:** This is not financial advice. Consult a professional.

Examples

  iai macros update disclaimer --file disclaimer.yaml
  iai macros update disclaimer --file disclaimer.yaml -m "update disclaimer wording for EU"
  iai macros update disclaimer --file disclaimer.yaml --schema-version 2.1.0
  iai macros update disclaimer --file disclaimer.yaml --labels staging,qa

Options

Options inherited from parent commands

SEE ALSO

  • iai macros - Pre-approved response templates used in routines

Last updated

Was this helpful?