•  


Using GitHub Classroom with GitHub CLI - GitHub Docs
Skip to main content

Using GitHub Classroom with GitHub CLI

You can use gh , the GitHub command line interface, to work with GitHub Classroom directly from your command line.

About GitHub Classroom CLI

GitHub CLI is an open source tool for using GitHub from your computer's command line. When you're working from the command line, you can use the GitHub CLI to save time and avoid switching context. For more information, see " About GitHub CLI ."

You can work with GitHub Classroom in the GitHub CLI to:

Setting up GitHub CLI

For installation instructions for GitHub CLI, see the GitHub CLI repository .

Using the GitHub Classroom extension with GitHub CLI

If you have not already done so, run gh auth login to authenticate with your GitHub account.

To install the GitHub Classroom extension, run gh extension install github/gh-classroom .

To use gh to work with GitHub Classroom, type gh classroom SUBCOMMAND .

As an example of a series of commands you might use to work with GitHub Classroom, you could:

  • List your classrooms:
    gh classroom list
  • List the assignments for a specific classroom:
    gh classroom assignments
  • View information for a specific assignment:
    gh classroom assignment

gh subcommands for GitHub Classroom

These sections give example subcommands for each of the available operations. When applicable, the CLI will prompt you to choose a classroom after you run the subcommand.

On the command line, use gh classroom --help for general help or gh classroom SUBCOMMAND --help for help with a specific subcommand.

List classrooms

gh classroom list

List of classrooms you own.

View classroom information

gh classroom view

Display the classroom ID, classroom slug, title, and other information about a classroom.

List assignments

gh classroom assignments

Display a list of assignments for a classroom.

List accepted assignments

gh classroom accepted-assignments

Display a list of accepted assignments and information about the student's assignments.

View assignment information

gh classroom assignment

Displays assignment information.

Clone an assignment's starter code repository

gh classroom clone starter-repo

Clones starter code repo used by an assignment. By default, the starter code is cloned into the current directory. To clone into a different directory, use the --directory flag. If the directory does not exists, it will be created.

Clone a student’s assignment repository

gh classroom clone student-repos

Clones student repositories from a given assignment. By default, the student repositories are cloned into the current directory a directory named after the assignment slug. To clone into a different directory, use the --directory flag. If the directory does not exists, it will be created.

By default, all student repositories are cloned. To get a different number of repositories, use the --per-page NUMBER flag.

- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본