---
title: "calicoctl datastore"
description: "Reference overview of the calicoctl datastore subcommands in Calico Open Source for migrating between etcdv3 and Kubernetes datastores."
product: "Calico Open Source"
version: "3.33 (latest)"
section: "Reference"
canonical_url: "https://docs.tigera.io/calico/latest/reference/calicoctl/datastore/overview"
---

# calicoctl datastore

This section describes the `calicoctl datastore` 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' commands

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

```text
Manage the Calico datastore, including migrating data between datastore types
and rewriting legacy policy names.

Usage:
  calicoctl datastore [command]

Available Commands:
  migrate              Migrate the contents of an etcdv3 datastore to a Kubernetes datastore
  migrate-policy-names Rewrite pre-v3.32 policy names in an etcdv3 datastore to drop the legacy "default." tier prefix

Flags:
  -h, --help   help for datastore

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 [command] --help" for more information about a command.
```

## Datastore specific commands

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

- [calicoctl datastore migrate](https://docs.tigera.io/calico/latest/reference/calicoctl/datastore/migrate/overview.md)
- [calicoctl datastore migrate-policy-names](https://docs.tigera.io/calico/latest/reference/calicoctl/datastore/migrate-policy-names.md)
