docs

git clone https://github.com/notamitgamer/docs.git
· rebuilt hourlyOpen on GitHub
root / githrun / cli-auth-and-tools.mdx

cli-auth-and-tools.mdx (1208B)


      1 ---
      2 title: "Authentication (Private Repos & Rate Limits)"
      3 sidebarTitle: "CLI - Auth, Bookmarks & Tools"
      4 ---
      5 
      6 import Copyright from "/snippets/copyright.mdx";
      7 
      8 GitHub limits unauthenticated requests to 60/hour. Logging in raises this to 5,000 and grants access to private repositories.
      9 
     10 ```bash
     11 githrun login ghp_YourPersonalAccessToken...
     12 ```
     13 
     14 The token is stored securely in `~/.githrun/config.json`.
     15 
     16 # Bookmarks
     17 
     18 Stop copy-pasting long URLs — save them once, run them anywhere.
     19 
     20 ```bash
     21 # Add a bookmark
     22 githrun bookmark add clean-db https://github.com/user/repo/blob/main/utils/cleanup.py
     23 
     24 # Run a bookmark
     25 githrun run clean-db
     26 
     27 # List bookmarks
     28 githrun bookmark list
     29 ```
     30 
     31 # Install as a Tool
     32 
     33 Turn a remote Python script into a command you can run from anywhere in your terminal.
     34 
     35 ```bash
     36 githrun install https://github.com/user/repo/blob/main/my-tool.py --name mytool
     37 ```
     38 
     39 - **Windows** — creates a `.bat` file in `~/.githrun/bin`
     40 - **Linux/Mac** — creates an executable shim in `~/.githrun/bin`
     41 
     42 <Warning>
     43 You must add `~/.githrun/bin` to your system PATH for installed tools to be runnable directly.
     44 </Warning>
     45 
     46 Continue to [Find, Search & Download](/githrun/cli-find-download).
     47 
     48 <Copyright />