Turn Your Vehicle Into a Smart Earning Asset

While you’re not driving your car or bike, it can still be working for you. MOTOSHARE helps you earn passive income by connecting your vehicle with trusted renters in your city.

🚗 You set the rental price
🔐 Secure bookings with verified renters
📍 Track your vehicle with GPS integration
💰 Start earning within 48 hours

Join as a Partner Today

It’s simple, safe, and rewarding. Your vehicle. Your rules. Your earnings.

GitHub Enterprise admin commands

In GitHub Enterprise, “commands” typically means GitHub CLI (gh) commands and admin-level REST/GraphQL API calls that administrators use to manage organizations, repositories, users, and enterprise settings.

Here’s a categorized list of the most used GitHub Enterprise admin commands:


🔹 Authentication & Setup

  • gh auth login – authenticate with GitHub Enterprise Server (GHES)
  • gh config set -h HOSTNAME git_protocol ssh – configure protocols (ssh/https) for your GHES instance

🔹 Organization Management

  • gh org list – list organizations you belong to
  • gh org view <org> – view organization details
  • gh api /orgs/<org>/members – list organization members
  • gh api --method PUT /orgs/<org>/memberships/<username> – invite or update member roles
  • gh api /orgs/<org>/outside_collaborators – manage outside collaborators

🔹 Repository Management

  • gh repo create <org>/<repo> --private --confirm – create a new repo inside an organization
  • gh repo view <org>/<repo> – view repo details
  • gh repo delete <org>/<repo> – delete a repo (with confirmation)
  • gh api /repos/<org>/<repo>/collaborators – list collaborators
  • gh api --method PUT /repos/<org>/<repo>/collaborators/<username> – add collaborator with role

🔹 User Management

  • gh api /users/<username> – view user info
  • gh api /enterprises/<enterprise>/admins – list enterprise admins
  • gh api --method PUT /orgs/<org>/memberships/<username> – assign/remove roles
  • gh api --method DELETE /orgs/<org>/memberships/<username> – remove a user

🔹 Teams & Access Control

  • gh api /orgs/<org>/teams – list teams in org
  • gh api /orgs/<org>/teams/<team_slug> – view team details
  • gh api --method PUT /orgs/<org>/teams/<team_slug>/memberships/<username> – add user to team
  • gh api --method DELETE /orgs/<org>/teams/<team_slug>/memberships/<username> – remove user from team

🔹 Enterprise & Security

  • gh api /enterprises/<enterprise> – view enterprise details
  • gh api /enterprises/<enterprise>/settings/audit-log – access audit logs
  • gh api /enterprises/<enterprise>/actions/permissions – manage Actions permissions
  • gh api /orgs/<org>/dependabot/secrets – manage Dependabot secrets
  • gh api /orgs/<org>/actions/secrets – manage GitHub Actions secrets

🔹 Example: Enterprise Audit & Compliance

# List all enterprise users
gh api /enterprises/MY-ENTERPRISE/admin/users

# Fetch enterprise audit log
gh api /enterprises/MY-ENTERPRISE/audit-log --paginate
Code language: PHP (php)

👉 These commands are used through GitHub CLI (gh) or via API calls. As an Enterprise Admin, you’ll mostly rely on:

  • gh api for advanced admin tasks
  • gh repo/org for repo/org management
  • gh auth for authentication across your GHES instance

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x