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. |
|
Share your 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 %}
Sharing your {% data variables.product.prodname_github_app %} via an install link
{% ifversion fpt or ghec %} If your {% data variables.product.prodname_github_app %} is public, other users and organizations {% ifversion ghec %}within your enterprise {% endif %}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 %}, then you can only share your app with other users or organizations within your enterprise.{% endif %}
{% else %} {% endif %}
{% data reusables.apps.settings-step %} {% data reusables.user-settings.developer_settings %} {% data reusables.user-settings.github_apps %}
-
Next to the {% data variables.product.prodname_github_app %} that you want to share, click Edit.
-
Click Public page. {% data variables.product.company_short %} will bring you to the public page for your {% data variables.product.prodname_github_app %}.
-
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, whereAPP-NAMEis the name of the {% data variables.product.prodname_github_app %}. -
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
statequery 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 GitHub App. For example, you could use thestateto 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."