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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for patched_cli-1.0.8.tar.gz
Algorithm Hash digest
SHA256 edd8572f584d82cdb514db3c4652b3104c3df278e62865ce58964baf67beb362
MD5 cace3d3277dac6708e47e9f237a6dc7a
BLAKE2b-256 fb952363247ce62f6375e767d3248304a247b4e1d0f4c18ea41ace60d8b00d94

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for patched_cli-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a368a0f6cfb173c746bd5090a5e612a8bf3cccc657c307c311d8dd77bb5fdcd2
MD5 6779b8f4bec9a982e9d043c005bbdbc6
BLAKE2b-256 4d07675f5df5b695e49a46212d51c757d292cc586a498c3ce0b60dfafc8dc418

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