Skip to main content

Enabling GitHub Copilot in the CLI

You can enable or disable GitHub Copilot in the CLI for your organization or enterprise.

Note: If you have a GitHub Copilot Individual subscription, you are automatically granted access to the GitHub Copilot in the CLI beta.

The GitHub Copilot in the CLI public beta is available to all organizations and enterprises that have an active GitHub Copilot Business license. You can enable or disable Copilot in the CLI for your organization or enterprise in the Copilot settings.

Note: To use GitHub Copilot in the CLI, after it has been enabled, users must install the GitHub Copilot in the CLI extension, see "Using GitHub Copilot in the CLI."

Enabling or disabling Copilot in the CLI at the organization level

An organization owner can enable or disable Copilot in the CLI for the organization. You may not be able to configure this setting for your organization, if an enterprise owner has set a policy at the enterprise level.

  1. In the upper-right corner of GitHub.com, select your profile photo, then click Your organizations.

    Screenshot of the dropdown menu under @octocat's profile picture. "Your organizations" is outlined in dark orange.

  2. Next to the organization, click Settings.

  3. In the "Code, planning, and automation" section of the sidebar, click Copilot, and then click Policies and features.

  4. To the right of "GitHub Copilot in the CLI", select the dropdown menu, then click Enabled or Disabled.

Enabling or disabling Copilot in the CLI at the enterprise level

An enterprise owner can choose whether to enable a feature for all organizations, disable for all organizations, or allow each organization to choose its own policy for the feature.

  1. In the enterprise account sidebar, click Policies.

  2. Under " Policies", click Copilot.

  3. Click the Technical preview features tab.

  4. To the right of "GitHub Copilot in the CLI", select the dropdown menu, then choose the appropriate option.

    • Click Allowed to enable the Copilot in the CLI beta for all organizations under your enterprise.
    • Click Blocked to disable the Copilot in the CLI beta for all organizations under your enterprise.
    • Click No policy to allow each organization under your enterprise to set its own policy.