Skip to main content

Esta versión de GitHub Enterprise Server se discontinuó el 2026-04-23. No se realizarán lanzamientos de patch, ni siquiera para problemas de seguridad críticos. Para obtener rendimiento mejorado, seguridad mejorada y nuevas características, actualice a la versión más reciente de GitHub Enterprise Server. Para obtener ayuda con la actualización, póngase en contacto con el soporte técnico de GitHub Enterprise.

Enterprise Live Migrations CLI reference

Detailed usage information for the ELM CLI tool.

Nota:

Enterprise Live Migrations is in beta and subject to change.

elm migration commands

CommandDescription
elm migration createCreates a new migration for a single source repository
elm migration start --migration-id MIGRATION-IDStarts a migration
elm migration status --migration-id MIGRATION-IDShows the status, progress, cutover readiness, and timing of a migration
elm migration listLists all migrations and their statuses
elm migration cancel --migration-id MIGRATION-IDCancels a migration in progress
elm migration cutover-to-destination --migration-id MIGRATION-IDInitiates the final cutover, locking the source repository and completing the migration

Some of these commands can take additional options. See the later sections in this article.

elm migration create options

Create a new migration to prepare for repository export and import.

FlagRequiredDefaultDescription
--source-orgYesN/ASlug of the source organization on GitHub Enterprise Server
--source-repoYesN/AName of the source repository
--target-orgYesN/ASlug of the destination organization on GHE.com
--target-repoYesN/AName of the destination repository
--target-apiYesN/AThe API URL for your destination enterprise (for example: https://api.octocorp.ghe.com). Do not include a trailing slash at the end of the URL.
--pat-nameYesN/AThis must be set to a static string: system-pat
--target-visibilityNointernalVisibility of the destination repository. Must be private or internal. Public repositories are not supported.
--startNofalseAutomatically starts the migration after creating it

elm migration list options

FlagRequiredDefaultDescription
--statusNoN/AFilters results by migration status. Valid values: created, queued, in_progress, paused, completed, failed, terminated.
--page-sizeNoN/ANumber of results per page
--afterNoN/ACursor for pagination, from a previous response

elm migration cutover-to-destination options

FlagRequiredDefaultDescription
--migration-idYesN/AThe ID of a migration that is ready for cutover.
--forceNofalseBy default, the command checks whether the migration target reports readiness before proceeding. Use --force to bypass this check when you are certain the migration state is correct.

Global flags and variables

The following properties can be provided either as environment variables or as flags on any command, with command flags taking priority. You should set these values after applying the ghe-config configuration.

VariableFlagRequiredDescription
API_URL--api-urlYesMust be set to http://localhost:1738.
MIGRATION_MANAGER_HMAC_KEY--migration-manager-hmac-keyYesMust be set to $(ghe-config secrets.elm-exporter.elm-exporter-hmac-keys).
MIGRATION_TARGET_URL--migration-target-urlYesThe API URL for your destination enterprise (for example: https://api.octocorp.ghe.com). Do not include a trailing slash at the end of the URL.
MIGRATION_TARGET_TOKEN--migration-target-tokenYesThe personal access token (classic) for GHE.com
DEBUG_HTTP--debug-httpNoSet to true to print the HTTP method, URL, headers, and error response body for each request, for debugging purposes