---
title: "Mage"
description: "Run Metabase’s development automation tasks with ./bin/mage, and set up shell autocomplete for them."
url: "https://www.metabase.com/docs/latest/developers-guide/mage"
version: "65"
---

> For the complete documentation index, see [llms.txt](https://www.metabase.com/docs/llms.txt).

# MAGE - Development Automation

Run `./bin/mage` to list your tasks. All of them support `-h` to learn more and show examples.

All tasks support a `-h` option and will print their usage info.

```shell
$ ./bin/mage
   ███╗   ███╗ █████╗  ██████╗ ███████╗
   ████╗ ████║██╔══██╗██╔════╝ ██╔════╝
   ██╔████╔██║███████║██║  ███╗█████╗
   ██║╚██╔╝██║██╔══██║██║   ██║██╔══╝
   ██║ ╚═╝ ██║██║  ██║╚██████╔╝███████╗
   ╚═╝     ╚═╝╚═╝  ╚═╝ ╚═════╝ ╚══════╝
    The Metabase Automation Genius Engine

The following tasks are available:

cljfmt-staged   Runs cljfmt on staged files
kondo           Runs Kondo against a file, directory, or everything we usually lint
...
start-db        Start a db on a default port in docker
jar-download    Given a version, downloads a metabase jar
$ ./bin/mage kondo -h
<prints help for easily running kondo>
```

### mage Autocomplete

Run `./bin/mage setup-autocomplete` and follow the instructions to set up autocomplete in your terminal.
