Skip to main content

CLI for PR Pilot, a text-to-task automation platform for Github.

Project description

PR Pilot Logo

Install | Documentation | Blog | Website

PR Pilot CLI

PR Pilot gives you a natural language interface for your Github projects. Given a prompt, it uses LLMs (Large Language Models) to autonomously fulfill tasks by interacting with your code base and Github issues, enabling a wide variety of ground-breaking AI-assisted automation use cases.

Installation

Make sure you have PR Pilot installed in your repository

To install the CLI, run the following command:

pip install --upgrade pr-pilot-cli

By default, the CLI will prompt you to input your API key if it is not already configured.

Usage

After installation, open a terminal and ls into a repository you have installed PR Pilot in and talk to PR Pilot:

Examples

Translate a file:

pilot --raw "translate the README into German" > README_German.md

Let it write some unit tests:

pilot "Write some unit tests for the utils.py file."

Find some information in your Github issues:

pilot "Do we have any open Github issues regarding the AuthenticationView class?"

For more information, check out our User Guide.

Options and Parameters

You can change the default settings with parameters and options:

Usage: pilot [OPTIONS] [PROMPT]...

Options:
  --wait / --no-wait  Wait for the result.
  --repo TEXT         Github repository in the format owner/repo.
  --chatty            Print more information.
  --raw               For piping. No pretty-print, no status indicator.
  --model TEXT        GPT model to use.
  --debug             Display debug information.
  --help              Show this message and exit.

Features

  • Configuration Management: Automatically manages API key configuration by prompting the user to input their API key if not already configured.
  • Task Creation: Users can create tasks by specifying a repository and a prompt. The CLI handles task creation and optionally waits for the result.
  • Result Retrieval: If the --wait option is used, the CLI waits for the task to complete and displays the result directly in the terminal.
  • Dashboard Link: For tasks that are not awaited, the CLI provides a link to the task's dashboard for further monitoring.

Configuration

The configuration file is located at ~/.pr-pilot.yaml.

Contributing

Contributors are welcome to improve the CLI by submitting pull requests or reporting issues. For more details, check the project's GitHub repository.

License

The PR Pilot CLI is open-source software licensed under the GPL-3 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pr_pilot_cli-1.3.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

pr_pilot_cli-1.3.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file pr_pilot_cli-1.3.0.tar.gz.

File metadata

  • Download URL: pr_pilot_cli-1.3.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for pr_pilot_cli-1.3.0.tar.gz
Algorithm Hash digest
SHA256 51c6053c7ed6f91d9b408ef1bacd68beb4ba57fd555909f189629f901fb932e1
MD5 4e50bf925b430241117cab498395e265
BLAKE2b-256 8e89b9f60e4eb3dfecc4c5e96c27aa094eb10de526b4934371297bd1fce2ad6f

See more details on using hashes here.

File details

Details for the file pr_pilot_cli-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: pr_pilot_cli-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for pr_pilot_cli-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b63befcac0ee4f71226d69fa3f5b18d7e1f787be77702283e458f371e2e0375
MD5 2e4f86d02bc94fdce6fec211f5fe22a3
BLAKE2b-256 da347d02cafb0515f1811ad4d39eb1337d102039ac8bd78376b02f9adf70ce64

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page