class documentation

class MigrateCommand(Command): (source)

View In Hierarchy

Tools for migrating the FiftyOne database.

See :ref:`this page <database-migrations>` for more information about migrating FiftyOne deployments.

Examples:

# Print information about the current revisions of all datasets
fiftyone migrate --info

# Migrate the database and all datasets to the current client version
fiftyone migrate --all

# Migrate to a specific revision
fiftyone migrate --all --version <VERSION>

# Migrate a specific dataset
fiftyone migrate ... --dataset-name <DATASET_NAME>

# Update the database version without migrating any existing datasets
fiftyone migrate
Static Method execute Executes the command on the given args.
Static Method setup Setup the command-line arguments for the command.
@staticmethod
def execute(parser, args): (source)

Executes the command on the given args.

Parameters
parserthe argparse.ArgumentParser instance for the command
argsan argparse.Namespace instance containing the arguments for the command
@staticmethod
def setup(parser): (source)

Setup the command-line arguments for the command.

Parameters
parseran argparse.ArgumentParser instance