---
name: "Catmandu::Cmd::run"
section: "3pm"
platform: "linux"
package: "libcatmandu-perl"
version: "1.2024-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Cmd::run"
---

# Catmandu::Cmd::run(3pm)

run a fix command

## NAME

Catmandu::Cmd::run - run a fix command

## EXAMPLES

```
  # Run an interactive Fix shell
  $ catmandu run
  # Execute the fix script
  $ catmandu run myfixes.txt
  # Execute the scripts with options passed
  $ catmandu run --var source=bla myfixes.txt
  $ cat myfixes.txt
  add_field(my_source,{{source}})
  # Or create an execurable fix script:
  #!/usr/bin/env catmandu run
  do importer(Mock,size:10)
    add_field(foo,bar)
    add_to_exporter(.,JSON)
  end
```
