---
title: thv-registry-api migrate
hide_title: true
description: Reference for ToolHive Registry API CLI command `thv-registry-api migrate`
last_update:
  author: autogenerated
slug: thv-registry-api_migrate
mdx:
  format: md
---

## thv-registry-api migrate

Database migration tool

### Synopsis

Database migration tool for managing schema versions. Use with 'up' or 'down' subcommands.

```
thv-registry-api migrate [flags]
```

### Options

```
      --config string    Path to configuration file (YAML format, required)
  -h, --help             help for migrate
  -n, --num-steps uint   Number of steps to migrate (0 = all)
  -y, --yes              Answer yes to all questions
```

### Options inherited from parent commands

```
      --debug   Enable debug mode
```

### SEE ALSO

* [thv-registry-api](thv-registry-api.md)	 - ToolHive Registry API server
* [thv-registry-api migrate down](thv-registry-api_migrate_down.md)	 - Revert database migrations
* [thv-registry-api migrate up](thv-registry-api_migrate_up.md)	 - Apply pending database migrations

