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

## thv-registry-api migrate down

Revert database migrations

### Synopsis

Revert database migrations by rolling back changes.
WARNING: This operation may result in data loss. Use with caution.

By default, this command requires the --num-steps flag to specify how many
migrations to revert. This is a safety measure to prevent accidental data loss.

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

### Options

```
  -h, --help   help for down
```

### Options inherited from parent commands

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

### SEE ALSO

* [thv-registry-api migrate](thv-registry-api_migrate.md)	 - Database migration tool

