1
0
mirror of synced 2025-12-22 19:34:15 -05:00
Files
docs/content/apps/sharing-github-apps/sharing-your-github-app.md
2025-07-01 19:32:09 +00:00

3.9 KiB

title, intro, versions, shortTitle, redirect_from
title intro versions shortTitle redirect_from
Sharing your GitHub App You can share your {% data variables.product.prodname_github_app %} with other users.
fpt ghec ghes
* * *
Share your app
/apps/maintaining-github-apps/sharing-your-github-app

{% ifversion fpt or ghec %}

Sharing your {% data variables.product.prodname_github_app %} on {% data variables.product.prodname_marketplace %}

If your {% data variables.product.prodname_github_app %} is public, you can choose to publish it to {% data variables.product.prodname_marketplace %}. For more information, see AUTOTITLE.

{% ifversion ghec %}If you are an {% data variables.product.prodname_emu %}, then you cannot share your app on {% data variables.product.prodname_marketplace %}.{% endif %}

For more information about how users can install your app from {% data variables.product.prodname_marketplace %}, see AUTOTITLE and AUTOTITLE.

{% endif %}

{% ifversion fpt or ghec %} If your {% data variables.product.prodname_github_app %} is public, other users and organizations can install your app. For more information about making your app public, see AUTOTITLE.

{% ifversion ghec %}If you are an {% data variables.product.prodname_emu %}{% ifversion enterprise-apps-public-beta %} or your app is owned by your enterprise account{% endif %}, you can only share your app with accounts within your enterprise.{% endif %}

{% else %} {% endif %}

{% data reusables.apps.settings-step %} {% data reusables.apps.enterprise-apps-steps %}

  1. Next to the {% data variables.product.prodname_github_app %} that you want to share, click Edit.

  2. Click Public page. {% data variables.product.company_short %} will bring you to the public page for your {% data variables.product.prodname_github_app %}.

  3. Click Install. {% data variables.product.company_short %} will bring you to the installation URL for your {% data variables.product.prodname_github_app %}. The URL will look something like {% data variables.product.oauth_host_code %}/{% ifversion ghes %}github-apps{% else %}apps{% endif %}/APP-NAME/installations/new, where APP-NAME is the name of the {% data variables.product.prodname_github_app %}.

  4. Share the installation URL with other users. For more information about how users can install your app from this URL, see AUTOTITLE.

    When you share the URL, you can include a state query parameter in the installation URL to preserve the state of the application page and return people back to that state after they install, authenticate, or accept updates to your {% data variables.product.prodname_github_app %}. For example, you could use the state to correlate an installation to a user or account.

    To preserve a state, add it to the installation URL: {% data variables.product.oauth_host_code %}/{% ifversion ghes %}github-apps{% else %}apps{% endif %}/<app name>/installations/new?state=AB12t

Sharing your {% data variables.product.prodname_github_app %} with {% data variables.product.prodname_ghe_server %} instances

If you want to share your {% data variables.product.prodname_github_app %} with {% data variables.product.prodname_ghe_server %} instances that you are not part of, you need to take additional steps. For more information, see AUTOTITLE.