Skip to content

Instantly share code, notes, and snippets.

@gitstua
Created August 14, 2022 22:22
Show Gist options
  • Save gitstua/dab221b64de32f5343330798af98b55f to your computer and use it in GitHub Desktop.
Save gitstua/dab221b64de32f5343330798af98b55f to your computer and use it in GitHub Desktop.
Create GitHub Org (thanks Andrew Feller)
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