Created
August 14, 2022 22:22
-
-
Save gitstua/dab221b64de32f5343330798af98b55f to your computer and use it in GitHub Desktop.
Create GitHub Org (thanks Andrew Feller)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gh api graphql -F adminLogin="gitstua" -F billingEmail="gitstua@example.com" -F enterpriseId="MDEwMDEudEEycHHcc3Uy" -F orgLogin="gitstua1" -f query=' | |
mutation CreateEnterpriseOrg($adminLogin: String!, $billingEmail: String!, $enterpriseId: ID!, $login: String!) { | |
createEnterpriseOrganization( | |
input: {adminLogins: [$adminLogin], billingEmail: $billingEmail, enterpriseId: $enterpriseId, login: $orgLogin, profileName: $orgLogin} | |
) { | |
organization { | |
id | |
name | |
url | |
} | |
} | |
} | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment