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.

Download files

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

Source Distribution

patched_cli-0.0.6.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

patched_cli-0.0.6-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file patched_cli-0.0.6.tar.gz.

File metadata

  • Download URL: patched_cli-0.0.6.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure

File hashes

Hashes for patched_cli-0.0.6.tar.gz
Algorithm Hash digest
SHA256 1d094a68874e3ca403e281a32816a4d9d5879c7d08aefae483fc577d6fc643c7
MD5 011baf8519369e9adf434051c4f5de6b
BLAKE2b-256 58a57c3d41f439ca84a05ad1b3ec9906bdee68a23f9c748e2e5bc223c727e631

See more details on using hashes here.

File details

Details for the file patched_cli-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: patched_cli-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure

File hashes

Hashes for patched_cli-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 388503f29877657a5c80897d6d1bb262d0181cf69d2d41f9d9c6586c90fa2a08
MD5 8e035399e491288aeed0225a13e77e10
BLAKE2b-256 e0a5035f87c8d93a04a07af1ec9cacf2ef90d67e9f6ff2ba6b21f503124f3701

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page