docs

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

cli-find-download.mdx (872B)


      1 ---
      2 title: "Find & Search"
      3 sidebarTitle: "CLI - Find & Download"
      4 ---
      5 
      6 import Copyright from "/snippets/copyright.mdx";
      7 
      8 Search for files inside a remote repository without cloning it.
      9 
     10 ```bash
     11 # Search for files containing "config"
     12 githrun find https://github.com/user/repo "config"
     13 ```
     14 
     15 This command is interactive — you can select a result number to run it immediately.
     16 
     17 # Download Files & Folders
     18 
     19 ## Download a single file
     20 
     21 ```bash
     22 githrun download https://github.com/user/repo/blob/main/script.py
     23 ```
     24 
     25 ## Download a specific folder (recursive)
     26 
     27 ```bash
     28 githrun download https://github.com/user/repo/tree/main/src/utils --output ./local_utils
     29 ```
     30 
     31 # Show Folder Contents
     32 
     33 List files in a remote directory to understand the structure:
     34 
     35 ```bash
     36 githrun show https://github.com/user/repo/tree/main/src
     37 ```
     38 
     39 Continue to [Python API](/githrun/python-api).
     40 
     41 <Copyright />