Skip to content

brettjrea/Debian_Install_GitHub_CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

Title: "Node.js and Build Tools Installation Guide with Optional OS Upgrades"

1. Get Debian/Ubuntu:
  1. Install WSL Debian on Windows

  2. Install WSL Ubuntu on Windows

  3. Install VSCode with Remote Pack on Windows

2. Optional OS upgrades:
  1. Upgrade Debian Bullseye to Buster

  2. Upgrade Ubuntu Focal to Jammy

3. Node.js tools: 1. [Install NVM](https://github.com/brettjrea/Debian_Install_NVM) - Node Version Manager
  1. Install NVS - Node Version Switcher (added 02/23 it is a cross-platform node based successor/replacement for NVM)
4. Build tools:
  1. Install common build tools.
5. Add a Backend:
  1. Install Strapi.io backend
6. Add a Frontend:
  1. Install Gatsby frontend
7. Configure Process Manager:
  1. Configure PM2 Process Manager
8. Add GitHub CLI:
  1. Install GitHub CLI

GitHub CLI

This is a script to install GitHub CLI on Debian-based systems using the install-github-cli.sh script. To use the script, copy and paste the following commands into your terminal:

sudo apt upgrade -y && sudo apt update -y && sudo apt autoremove -y &&
sudo apt install wget -y &&
sudo apt-get install --reinstall ca-certificates -y &&
wget https://raw.githubusercontent.com/brettjrea/Debian_Install_GitHub_CLI/main/install-github-cli.sh &&
chmod +x install-github-cli.sh &&
./install-github-cli.sh &&
sudo apt autoremove -y &&
sudo apt clean -y

Authentication and Configuration

gh auth login: Authenticate to GitHub with your credentials.

gh config set editor : Set your preferred text editor for Git commands.

gh config set prompt <style>: Customize the shell prompt for GitHub CLI.

Repository Management

gh repo create [--public|--private]: Create a new GitHub repository with the given name and visibility.

gh repo clone [-- ]: Clone a GitHub repository locally with optional Git clone arguments.

gh repo view : View a GitHub repository in the browser.

gh repo fork [--clone|--remote-name=]: Fork a GitHub repository to your account with optional cloning or custom remote name.

gh repo delete [--yes]: Delete a GitHub repository with optional confirmation.

Pull Request Management

gh pr create: Create a new pull request in the current repository.

gh pr checkout : Check out the branch for the given pull request number.

gh pr view : View a pull request in the browser.

gh pr merge [--merge-method=]: Merge a pull request with optional merge method.

Issue Management

gh issue create: Create a new issue in the current repository.

gh issue list [--assignee=|--label=|--state=|--author=|--mention=]: List issues in the current repository with optional filters.

gh issue view : View an issue in the browser.

gh issue close : Close an issue.

Workflow Management

gh workflow list: List the workflows in the current repository.

gh workflow view : View details of a workflow in the current repository.

gh workflow run [--ref=]: Manually trigger a workflow in the current repository with optional ref.


This is not an exhaustive list of all available commands, but these are some of the most commonly used ones. You can get a full list of commands and their descriptions by running gh help.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages