Skip to main content

Patched!

patched-cli is a CLI that generates vulnerability patches for your codebase.

Quickstart guide

  1. Install patched-cli.
    pip install patched-cli
    
  2. Run patched-cli with your git repository as its argument or working directory. When the working directory is the git repository
    patched-cli
    
    When the argument is the git repository
    patched-cli /path/to/my/git/repository
    
  3. If this is the first time running patched-cli, you will be redirected to patched's sign-in page to generate a token. Copy the token and paste it to the prompt. If this is not the first time running patched-cli an application directory should already exist under your user's home directory if you are using a Unix-based operating system or AppData folder if you are using a windows based operating system. Alternatively you can set the environment variable PATCHED_ACCESS_TOKEN before running patched-cli.
    export PATCHED_ACCESS_TOKEN="your-patched-access-token-here"
    patched-cli 
    
  4. To create a pull request you can set the --create-pr flag.
    patched-cli --create-pr
    
    If patched.codes is not installed in your GitHub repository you can give patched-cli your GitHub Personal Access Token via the option --github-access-token or set the environment variable PATCHED_GITHUB_TOKEN
    export PATCHED_GITHUB_TOKEN="your.patched.access.token.here"
    patched-cli --create-pr
    

Extras for Windows users

patched-cli only supports Windows using WSL(Windows Subsystem for Linux). Please consult WSL install for more information.

Release files for patched-cli 1.1.4

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

Source distribution (sdist)

Source distribution for patched-cli 1.1.4
File Size Uploaded
patched_cli-1.1.4.tar.gz 2.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for patched-cli 1.1.4
File Interpreter ABI Platform
patched_cli-1.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 4.9 MB

Release files / patched_cli-1.1.4.tar.gz

Download URL patched_cli-1.1.4.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
e90fc3ecaf4f6b7684bdc3762481c2245a076e5364a8c3a9e2010795ea0eb2ec
BLAKE2b-256 checksum
How to use checksums
106a6917ff5f9e2b5bffa4b1c7231c750ad543ff0e3f1b4f4f3edf28a609de41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1015-azure

Release files / patched_cli-1.1.4-py3-none-any.whl

Download URL patched_cli-1.1.4-py3-none-any.whl
Size 2.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
92d8b278996b996023563b2f176b906e4f0704d5eaeb74e91ef7ed89469a2422
BLAKE2b-256 checksum
How to use checksums
eaf9226083fa454d1f06408342ac4ecc3a027cf89409d32ed42bfc501c48a902
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1015-azure

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.0.8

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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