Skip to main content

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
Option Short Type Description Default
--depth -d INTEGER Max directory depth (0=root only) 4
--path -p DIRECTORY Starting directory path CWD
--clear-state Clear previous selections
--install-completion Install shell completion
--show-completion Show shell completion
--help Show 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!

Metadata

Release files for promptify-cli 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for promptify-cli 0.1.8
File Size Uploaded
promptify_cli-0.1.8.tar.gz 12.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for promptify-cli 0.1.8
File Interpreter ABI Platform
promptify_cli-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 24.0 kB

Release files / promptify_cli-0.1.8.tar.gz

Download URL promptify_cli-0.1.8.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
25c1e23e04889558b6913b01fcc1f49129298be6ae537c270b42ca55dbb6ef72
BLAKE2b-256 checksum
How to use checksums
5ba2e78ce571f9cac1285a6271e2c0e9ce50637f816890bdc778e21dadaf9e76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / promptify_cli-0.1.8-py3-none-any.whl

Download URL promptify_cli-0.1.8-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99791b2912419e71b64de95df1989b3c7afd4d71d28b06ca7178172620c6c33b
BLAKE2b-256 checksum
How to use checksums
2e2ee8bf0d5c21f13c3a4176bc4ff590c09520fe636891416ab2c4fad48cf60e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page