Skip to main content

HackEDU Command Line Interface

The HackEDU command-line interface is a wrapper for the HackEDU Public API.

Documentation for the HackEDU API can be found at https://developers.hackedu.com

Installing

You can install the latest version of hackedu-cli with pip:

pip install hackedu-cli

Or you can build from source by cloning this repository and running setup:

git clone https://github.com/hack-edu/hackedu-cli
python setup.py develop

You will now have access to the hackedu command in your terminal.

Commands

View the available options

hackedu --help

Create your .hackedu config file

hackedu config

You can either define options inside of your .hackedu config file, or pass them in via the command line. If you store your config file anywhere other than the default location (~/.hackedu), then you'll need to use the --config command line option.

hackedu [OPTIONS] COMMAND --config=/path/to/config/.hackedu

You can also define a profile within your config file. For example, a SonarQube specific profile.

[default]
api_key=API_KEY
hackedu_url=https://api.hackedu.com

[sonarqube_1]
source=SOURCE_UUID
username=USERNAME
password=PASSWORD
app=SONARQUBE_PROJECT_KEY

[sonarqube_2]
source=SOURCE_UUID
token=SONARCLOUD_TOKEN
app=SONARQUBE_PROJECT_KEY
edition=SONARQUBE_EDITION
organization=SONARQUBE_ORGANIZATION

Create an Issue Source

hackedu issue-source create --title=[TITLE] --type=[TYPE]

List all Issue Sources

hackedu issue-source ls

Sync Issues for an Issue Source

hackedu issues sync sonarqube --username=[USERNAME] --password=[PASSWORD] --url=[URL] --branch=[BRANCH] --app=[APP] --source=[ISSUE_SOURCE_UUID]

List Issues for an Issue Source

hackedu issues ls --source=[ISSUE_SOURCE_UUID]

See the version

hackedu --version

Example commands

There are different configuration options depending on if you are using SonarQube Community Edition or SonarCloud.

If you are using SonarQube community edition, these are the available options:

hackedu issues sync sonarqube --username=USERNAME --password=PASSWORD --url=SONARQUBE_URL --source=SOURCE_UUID --app=PROJECT_KEY --branch=BRANCH

For SonarCloud, you must use token based authentication. You must also specify an organization:

hackedu issues sync sonarqube --token=TOKEN --url=SONARCLOUD_URL --source=SOURCE_UUID --app=PROJECT_KEY --branch=BRANCH --edition=cloud --organization=ORGANIZATION

Release files for hackedu-cli 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hackedu-cli 0.1.8
File Size Uploaded
hackedu-cli-0.1.8.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hackedu-cli 0.1.8
File Interpreter ABI Platform
hackedu_cli-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / hackedu-cli-0.1.8.tar.gz

Download URL hackedu-cli-0.1.8.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4115be499ef847ed0d785dd8a6627ba1ec6d570a640cfba9b3921e14ddc3ab95
BLAKE2b-256 checksum
How to use checksums
04b6ff93533e99809dcdb9b0cfb6d2914a925aa79a81a390c708df9041a6c3bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.2

Release files / hackedu_cli-0.1.8-py3-none-any.whl

Download URL hackedu_cli-0.1.8-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
524c8574970c7928bbcc06f8ab0585f0d0fdde830f6d3f32b1da6fd9320c0ef3
BLAKE2b-256 checksum
How to use checksums
13134bd3450ef699841d388f5c77c7adbc20f430f0aab8e2628bbdced6a08e08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page