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-1.1.2.tar.gz (990.2 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-1.1.2-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: patched_cli-1.1.2.tar.gz
  • Upload date:
  • Size: 990.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.10.12 Linux/6.2.0-1019-azure

File hashes

Hashes for patched_cli-1.1.2.tar.gz
Algorithm Hash digest
SHA256 e595e7e66a39d4247f752e96e1b3948535ec22b11c48b11a06091f09f6d92489
MD5 f387bccab5315f57741ab02f144f3c45
BLAKE2b-256 d508816b5f49214fcf3286a0e26dc1669bbfd7a8957e9c070ae34e28325e229e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: patched_cli-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.10.12 Linux/6.2.0-1019-azure

File hashes

Hashes for patched_cli-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fde96fe90b233f0ad20fa2dced5be068be8683f5a9112d3e47bddcad5ca421cd
MD5 c14c33f6050c04fe4d35b20985f9e2df
BLAKE2b-256 149957ccefc359d0fd74f71e5a4c59e77d9c5b2be9a694d75b422883a32e50bd

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 Pingdom Monitoring Sentry Error logging StatusPage Status page