docs

Log | Files | Refs | Activity

root / src / githrun / cli-usage.md

cli-usage.md (822B)


      1 ---
      2 label: CLI - Install & Run
      3 order: 690
      4 ---
      5 
      6 # Installation
      7 
      8 ```bash
      9 pip install githrun
     10 ```
     11 
     12 # Run Remote Code
     13 
     14 Execute a script directly from a URL.
     15 
     16 ## Basic execution
     17 
     18 ```bash
     19 githrun run https://github.com/user/repo/blob/main/script.py
     20 ```
     21 
     22 ## Run gists
     23 
     24 ```bash
     25 githrun run https://gist.github.com/user/1234567890abcdef
     26 ```
     27 
     28 ## Auto-install dependencies
     29 
     30 If a remote script needs packages you don't have (e.g. pandas, requests), run it in an isolated environment:
     31 
     32 ```bash
     33 githrun run https://github.com/user/repo/blob/main/data.py --auto-install
     34 ```
     35 
     36 ## Inspect before running
     37 
     38 View the source with syntax highlighting before executing it — a safety check:
     39 
     40 ```bash
     41 githrun run https://github.com/user/repo/blob/main/script.py --inspect
     42 ```
     43 
     44 Continue to [Auth, Bookmarks & Tool Install](cli-auth-and-tools.md).
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror