
Security News
GitHub to Block pull_request_target Workflows by Default Starting December 2
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.
This is a command-line interface (CLI) tool for competitive programming (CP) enthusiasts. The tool provides several functionalities that can help with CP tasks.
This is a command-line interface (CLI) tool for competitive programming (CP) enthusiasts. The tool provides several functionalities that can help with CP tasks.
$ npm i -g zx
or
$ yarn global add zx
git clone https://github.com/p-nerd/cp-cli2.git
$ sudo cp ./cp-cli2.mjs /usr/bin/cp-cli2
$ sudo chmod +x /usr/bin/cp-cli2
<file name>: Create a file with ~/.cp-cpi/template.cpp contents.set <file name>: Copy the template file to ~/.cp-cpi/template.cpp.cf_status <numeric series> <alphabetical series>: Open the problem submission status page for the given problem on the Codeforces website in the default web browser.cf_rename <file name> <problem numeric series> <dir name rate>: Rename the specified file with a specific formatting for Codeforces problems.done <file name>: Add the current time to the end of the specified file.help: Show the list of available commands and their descriptions.To create a file with ~/.cp-cpi/template.cpp contents:
$ cp-cli2 <file name>
Replace with the name of the file you want to create.
To copy the template file to ~/.cp-cpi/template.cpp:
$ cp cli set <file name>
Replace with the name of the file you want to set the template for.
To open the problem submission status page for a Codeforces problem in the default web browser:
$ cp-cli2 cf_status <numeric series> <alphabetical series>
Replace with the numeric series of the problem and with the alphabetical series of the problem.
To rename a file with a specific formatting for Codeforces problems:
$ cp-cli2 cf_rename <file name> <problem numeric series> <dir name rate>
Replace with the name of the file you want to rename. If you want to include the problem numeric series in the file name, include it as the second argument. If you want to include a directory name in the file path, include it as the third argument.
To add the current time to the end of a file:
$ cp-cli2 done <file name>
Replace with the name of the file you want to add the timestamp to.
To show the list of available commands and their descriptions:
$ cp-cli2 help
FAQs
This is a command-line interface (CLI) tool for competitive programming (CP) enthusiasts. The tool provides several functionalities that can help with CP tasks.
We found that cp-cli2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.

Security News
/Application Security
A practical guide to securing GitHub Actions against supply chain attacks, covering malicious pull requests, credential theft, dependency risks, and release pipelines.

Security News
Composer 2.11 adds dependency cooldowns, joining package managers that delay new releases to reduce supply chain risks while allowing urgent security updates.