---
title: "calicoctl datastore migrate"
description: "Reference overview of the calicoctl datastore migrate subcommands in Calico Open Source for performing safe datastore migrations."
product: "Calico Open Source"
version: "3.32 (latest)"
section: "Reference"
canonical_url: "https://docs.tigera.io/calico/latest/reference/calicoctl/datastore/migrate/overview"
---

# calicoctl datastore migrate

This section describes the `calicoctl datastore migrate` commands.

Read the [calicoctl Overview](https://docs.tigera.io/calico/latest/reference/calicoctl/overview.md) for a full list of calicoctl commands.

## Display the help text for 'calicoctl datastore migrate' commands

Run `calicoctl datastore migrate --help` to display the following help menu for the commands.

```text
Usage:
  calicoctl datastore migrate <command> [<args>...]

    export  Export the contents of the etcdv3 datastore to yaml.
    import  Store and convert yaml of resources into the Kubernetes datastore.
    lock    Lock the datastore to prevent changes from occurring during datastore migration.
    unlock  Unlock the datastore to allow changes once the migration is completed.

Options:
  -h --help      Show this screen.

Description:
  Migration specific commands for calicoctl.

  See 'calicoctl datastore migrate <command> --help' to read about a specific subcommand.
```

## Migrate specific commands

Details on the `calicoctl datastore migrate` commands are described in the documents linked below organized by sub command.

- [calicoctl datastore migrate export](https://docs.tigera.io/calico/latest/reference/calicoctl/datastore/migrate/export.md)
- [calicoctl datastore migrate import](https://docs.tigera.io/calico/latest/reference/calicoctl/datastore/migrate/import.md)
- [calicoctl datastore migrate lock](https://docs.tigera.io/calico/latest/reference/calicoctl/datastore/migrate/lock.md)
- [calicoctl datastore migrate unlock](https://docs.tigera.io/calico/latest/reference/calicoctl/datastore/migrate/unlock.md)
