🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

promptify-cli

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promptify-cli

Interactive CLI to select files, generate markdown for LLM prompts, and copy it to the clipboard.

0.1.8
PyPI
Maintainers
1

Promptify CLI

An interactive CLI to select files, generate markdown suitable for LLM prompts, and copy it to the clipboard.

Installation

pip install promptify-cli

Demo

Promptify CLI Demo

Basic Usage

Default Behavior

  • Run promptify to interactively select files and generate markdown for your clipboard
  • Supports .promptignore files (works like .gitignore)
  • Offers to add a basic .promptignore if none is found at project root. (First time only)
  • Includes a file tree to depth 4, excluding ignored files
  • Selected files (highlighted green) are md-formatted
  • Shows LOC and GPT-4o token counts as you use the UI

Help

promptify --help
OptionShortTypeDescriptionDefault
--depth-dINTEGERMax directory depth (0=root only)4
--path-pDIRECTORYStarting directory pathCWD
--clear-stateClear previous selections
--install-completionInstall shell completion
--show-completionShow shell completion
--helpShow help message and exit

Example Output (Copied to Clipboard)

Project Structure (Depth: 4):

```
example_documentation_project/
├─ foobar/
│  └─ bar.py
├─ foo.py
└─ output.md
```

---

## File: `foo.py`

```python
def foo(bar):
    return bar

```

---

## File: `foobar/bar.py`

```python
def bar(foo):
    return foo

```

Development

This package is self-contained in 1 file at src/promptify/cli.py. It's in a state that the UI and features meet my needs, but if you wish to modify the functionality, add more args, etc. drop me a github issue (slow response time) or feel free to submit a merge request!

Keywords

cli

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts