cli-auth-and-tools.md (1127B)
1 --- 2 label: CLI - Auth, Bookmarks & Tools 3 order: 680 4 --- 5 6 # Authentication (Private Repos & Rate Limits) 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 !!! 45 46 Continue to [Find, Search & Download](cli-find-download.md).