SOLFIND
Web Lens
Portal home

Install and configure GitHub Enterprise Importer - GitHub Docs

https://docs.github.com/en/migrations/ado/install-and-configure-github-enterprise-importer • 170 KB fetched
Open original page


Install and configure GitHub Enterprise Importer - GitHub Docs Skip to main content GitHub Docs Version: Free, Pro, & Team Search or ask Copilot Search or ask Copilot Select language: current language is English Search or ask Copilot Search or ask Copilot Open menu Collapse sidebar Expand sidebar Scroll breadcrumbs left * Home * Migrations * Migrate from Azure DevOps * 3. Configure GitHub Enterprise Importer Scroll breadcrumbs right Migrations * * * Overview * GitHub's migration tooling * Migrations within GitHub * Plan your migration * Migration paths * Locked repositories * Mannequins and user activity * Programmatic repository imports * Migrate from Azure DevOps * Get started * 1. Understand migrations * 2. Manage access * 3. Configure GitHub Enterprise Importer * 4. Prepare to migrate * 5. Migrate repositories * 6. Follow-up tasks * Key differences * Migrate with GraphQL API * Migrator role * Import source code * GitHub Importer * About GitHub Importer * Import a repository * Command line * About source code imports * Local code * External Git repo * Subversion * Mercurial * Team Foundation Version Control * GitHub Enterprise Importer * Understand GitHub Enterprise Importer * About GitHub Enterprise Importer * Migrate from Bitbucket Server * About migrations * Overview of a migration * Manage access * Migrate repositories * Migrate between GitHub products * About migrations * Overview of a migration * Manage access * Migrate from Enterprise Server * Migrate repositories from GitHub.com * Migrate organizations from GitHub.com * Migrate from GitLab * Get started * 1. Understand migrations * 2. Plan your migration * 3. Manage access * 4. Configure GitHub Enterprise Importer * 5. Configure storage * 6. Migrate repositories * 7. Follow-up tasks * Migrate with GraphQL API * Migrator role * Complete migration * Access migration logs * Reclaim mannequins * Live migrations (GHES to GHE.com) * About live migrations * Prepare for your migration * Migrate your repository * Complete your migration * Troubleshooting * Migrated data reference * ELM CLI reference * ghe-migrator * About ghe-migrator * Export from GHES * Export from GitHub.com * Migrate data * Troubleshoot migrations * Troubleshoot migrations Install and configure GitHub Enterprise Importer Install the ADO2GH extension of the GitHub CLI and configure your environment for the migration. Copy as Markdown Run your migration Article 3 of 6 Next : Prepare for your migration from Azure DevOps to GitHub In this article * Step 1: Install the ADO2GH extension of the GitHub CLI * Step 2: Set environment variables Step 1: Install the ADO2GH extension of the GitHub CLI GitHub Enterprise Importer is a collection of extensions for GitHub CLI. If this is your first migration, you'll need to install GitHub CLI and the ADO2GH extension. * Install the GitHub CLI. * For installation instructions for GitHub CLI, see the GitHub CLI repository . * If you already have GitHub CLI installed, run gh --version to ensure you're running version 2.4.0 or newer. If you have an older version, visit the GitHub CLI repository for upgrade instructions. * Install the ADO2GH extension. Shell gh extension install github/gh-ado2gh gh extension install github/gh-ado2gh * The ADO2GH extension of the GitHub CLI is updated weekly. To make sure you're using the latest version, update the extension. Shell gh extension upgrade github/gh-ado2gh gh extension upgrade github/gh-ado2gh Any time you need help with the ADO2GH extension, you can use the --help flag with a command. For example, gh ado2gh --help will list all the available commands, and gh ado2gh migrate-repo --help will list all the options available for the migrate-repo command. Step 2: Set environment variables Before you can use the ADO2GH extension to migrate to GitHub Enterprise Cloud, you must create personal access tokens that can access the source and destination organizations, then set the personal access tokens as environment variables. * Make sure you have your personal access tokens for both GitHub and Azure DevOps ready. See Manage access if you haven't already created a token. * Set environment variables for the personal access tokens, replacing TOKEN in the commands below with the personal access tokens you previously created. Use GH_PAT for the destination organization and ADO_PAT for the source organization. * If you're using Terminal, use the export command. Shell export GH_PAT="TOKEN" export ADO_PAT="TOKEN" export GH_PAT="TOKEN" export ADO_PAT="TOKEN" * If you're using PowerShell, use the $env command. Shell $env:GH_PAT="TOKEN" $env:ADO_PAT="TOKEN" $ env :GH_PAT= "TOKEN" $ env :ADO_PAT= "TOKEN" * If you're migrating to GitHub Enterprise Cloud with data residency, for convenience, set an environment variable for the base API URL for your enterprise. Ensure you replace SUBDOMAIN with your enterprise's subdomain. For example, if your enterprise's subdomain is acme , the TARGET_API_URL value would be https://api.acme.ghe.com . * If you're using Terminal, use the export command. Shell export TARGET_API_URL="https://api.SUBDOMAIN.ghe.com" export TARGET_API_URL="https://api.SUBDOMAIN.ghe.com" * If you're using PowerShell, use the $env command. Shell $env:TARGET_API_URL="https://api.SUBDOMAIN.ghe.com" $ env :TARGET_API_URL= "https://api.SUBDOMAIN.ghe.com" You'll use this variable with the --target-api-url option in commands you run with the GitHub CLI. Up next Prepare for your migration from Azure DevOps to GitHub Step 3 of 6 in Run your migration Back to top Help and support Was this Doc helpful? Yes No Help us make GitHub Docs great! All Docs are open source. See something that's wrong or unclear? Submit a pull request. Make a contribution Still need help? Ask the GitHub community Contact support Expert services Blog GitHub Inc. © 2026 Terms Privacy Status Pricing

Links found on this page

  1. Skip to main content [direct]
  2. GitHub Docs [direct]
  3. Migrations [direct]
  4. Migrate from Azure DevOps [direct]
  5. GitHub's migration tooling [direct]
  6. Migrations within GitHub [direct]
  7. Plan your migration [direct]
  8. Migration paths [direct]
  9. Locked repositories [direct]
  10. Mannequins and user activity [direct]
  11. Programmatic repository imports [direct]
  12. 1. Understand migrations [direct]
  13. 2. Manage access [direct]
  14. 4. Prepare to migrate [direct]
  15. 5. Migrate repositories [direct]
  16. 6. Follow-up tasks [direct]
  17. Key differences [direct]
  18. Migrate with GraphQL API [direct]
  19. Migrator role [direct]
  20. About GitHub Importer [direct]
  21. Import a repository [direct]
  22. About source code imports [direct]
  23. Local code [direct]
  24. External Git repo [direct]
  25. Subversion [direct]
  26. Mercurial [direct]
  27. Team Foundation Version Control [direct]
  28. About GitHub Enterprise Importer [direct]
  29. About migrations [direct]
  30. Overview of a migration [direct]
  31. Manage access [direct]
  32. Migrate repositories [direct]
  33. About migrations [direct]
  34. Overview of a migration [direct]
  35. Manage access [direct]
  36. Migrate from Enterprise Server [direct]
  37. Migrate repositories from GitHub.com [direct]
  38. Migrate organizations from GitHub.com [direct]
  39. Get started [direct]
  40. 1. Understand migrations [direct]
  41. 2. Plan your migration [direct]
  42. 3. Manage access [direct]
  43. 4. Configure GitHub Enterprise Importer [direct]
  44. 5. Configure storage [direct]
  45. 6. Migrate repositories [direct]
  46. 7. Follow-up tasks [direct]
  47. Migrate with GraphQL API [direct]
  48. Migrator role [direct]
  49. Access migration logs [direct]
  50. Reclaim mannequins [direct]
  51. About live migrations [direct]
  52. Prepare for your migration [direct]
  53. Migrate your repository [direct]
  54. Complete your migration [direct]
  55. Troubleshooting [direct]
  56. Migrated data reference [direct]
  57. ELM CLI reference [direct]
  58. About ghe-migrator [direct]
  59. Export from GHES [direct]
  60. Export from GitHub.com [direct]
  61. Migrate data [direct]
  62. Troubleshoot migrations [direct]
  63. Run your migration [direct]
  64. GitHub CLI repository [direct]
  65. Manage access [direct]
  66. Make a contribution [direct]
  67. Ask the GitHub community [direct]
  68. Contact support [direct]
  69. Expert services [direct]
  70. Blog [direct]
  71. Terms [direct]
  72. Privacy [direct]
  73. Status [direct]
  74. Pricing [direct]