docs

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

cli-usage.mdx (897B)


      1 ---
      2 title: "Installation"
      3 sidebarTitle: "CLI - Install & Run"
      4 ---
      5 
      6 import Copyright from "/snippets/copyright.mdx";
      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](/githrun/cli-auth-and-tools).
     45 
     46 <Copyright />