---
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.33 (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
Migrate the contents of an etcdv3 datastore to a Kubernetes datastore. The
subcommands lock the datastore, export its contents to YAML, import them into
Kubernetes, and unlock when done.

Usage:
  calicoctl datastore migrate [command]

Available Commands:
  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 during migration
  unlock      Unlock the datastore to allow changes after migration

Flags:
  -h, --help   help for migrate

Global Flags:
      --allow-version-mismatch   Allow client and cluster versions mismatch
      --context string           The name of the kubeconfig context to use
  -l, --log-level string         Set the log level (panic, fatal, error, warn, info, debug) (default "panic")

Use "calicoctl datastore migrate [command] --help" for more information about a command.
```

## 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)
