Introduction
Welcome to the Changelog API documentation! This guide will help you understand how to use Changelog API
How-to guide
Set up CLI
Your system must have Python installed. If you don't have it, you can follow the instructions from Python downloads page. The next steps expect you to be in Linux/MacOS terminal.
-
Create Python virtual environment
python3 -m venv demo -
Activate the virtual environment
source demo/bin/activate -
Install with pip
python3 -m pip install changelog-api-client -
Try
cli_project -hcommand for a list of available project management functionality -
Try
changelog -hcommand for a list of available changelog functionality
Manage projects
The following is for CLI:
-
Create a configuration file config.ini
[DEFAULT] url = https://changelogapi.eu/app -
Set PROJECT_CLI_CONFIG_PATH configutation environment variable
export PROJECT_CLI_CONFIG_PATH=config.ini -
Generate RSA private key
openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:4096 -
Extract the public key
openssl rsa -pubout -in private_key.pem -out public_key.pem -
Create a project
cli_project create demo-project public_key.pem private_key.pem
With cat config.ini you can see the created project's id and the key pair's id.
-
When you no longer need the project, you can delete it
cli_project delete
With cat config.ini you can see that the current project's record is no longer there.
Manage versions
The following is for CLI:
-
Create a version
changelog create-version 1.0.0 -
Release a version. A release version is a finalized iteration of a software product that is made available to users.
changelog release-version 1.0.0 -
The read-versions command retrieves a list of available software versions. By default, it displays up to 5 versions per page. However, you can customize the number of versions shown by specifying your desired amount as an argument. This allows you to view more or fewer versions based on your needs.
changelog read-versions -
Delete a version
changelog delete-version 1.0.0
Manage changes
The following is for CLI:
-
Create a change. It is important to choose the category of the change: added, changed, deprecated, removed, fixed, or security.
changelog create-change 1.0.0 added "Implemented user authentication" "John Smith" -
Move a change
changelog move-change 1.0.0 1.0.1 920eb6c1-b14d-424a-9d33-6e94fcc86bec -
Read changes
changelog read-changes 1.0.1 -
Delete a change
changelog delete-change 1.0.1 920eb6c1-b14d-424a-9d33-6e94fcc86bec