![]() ![]() Open an issue using 'gh issue create -R cli/cli' Use 'gh -help' for more information about a command. See 'gh help environment' for the list of supported environment variables. ![]() Repo: Create, clone, fork, and view repositoriesĪpi: Make an authenticated GitHub API requestĪuth: Login, logout, and refresh your authenticationĬompletion: Generate shell completion scripts This will give you a list with the available gh commands that you could use: USAGE Click enter and then follow the authentication process.Īnother useful command is the gh help command. You have an option to choose between or GitHub Enterprise. You will see the following output: ? What account do you want to log into? To do so, you need to run the following command: gh auth login Once you have gh installed, you need to login to your GitHub account. In my case, I'm running the latest gh v1.0.0, which got released just a couple of days ago. This would output the gh version: gh version 1.0. Once you have gh installed, you can verify that it works with the following command: gh -version If you are on a Mac, you can install gh using Homebrew: Checkout our latest product - the ultimate tailwindcss page creator □ brew install ghįor any other operating systems, I recommend following the steps from the official documentation here. Sudo apt-add-repository https: ///packages InstallationĪs I will be using Ubuntu, to install gh you need to run the following commands: sudo apt-key adv -keyserver -recv-key C99B11DEB97541F0 You will also need to have a GitHub account. If you want to follow along, you can use the following referral link to get free $100 credit that you could use to deploy your servers and test the guide yourself on an actual Linux server: I will be using an Ubuntu 20.04 server deployed on DigitalOcean. ![]() You would also need a git shell environment. You can start with this tutorial here on the top git commands you should know. In this tutorial, I will give a quick overview of how to install gh and how to use it! Prerequisitesīefore you get started, you would need basic knowledge of how git and GitHub work. You can interact with your GitHub account directly through your command line and manage things like pull requests, issues, and other GitHub actions. ![]() The GitHub CLI or gh is basically GitHub on command-line. What is GitHub CLI and how to get started? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |