Commands examples

Here below, few basic examples of rp-cli use.

# Get the list of all the available architectures in the redpesk instance
rp-cli misc arch

# Get the list of all the available distributions in the redpesk instance
rp-cli misc distributions

# Get the list of all the available projects in the redpesk instance (verbose option)
rp-cli projects list -v

# Get the list of all the available applications in the redpesk instance (no verbose option)
rp-cli applications list

# Creation of a new project called "IOT Project", without waiting for the acknowledgement events
rp-cli projects add --nonblocking -n "IOT Project" --mandatory-arch x86_64 --optional-arch aarch64 --mandatory-distro redpesk-devel-28

# Creation of a new app "IOT Application" in the project with the slug "iot-project"
rp-cli applications add --name "IOT Application" -d "This is my beautiful app" --pkg-name "agl-service-helloworld" --source-rev "master-next" --source-url "http://git.ovh.iot/redpesk/redpesk-samples/agl-service-helloworld.git" -p "iot-project"

# Upload a specfile for the application with the slug "iot-application"
rp-cli applications upload iot-application --file-path /home/me/iot-app.spec

# Get the list of all the available applications in the project with the slug "iot-project" in the redpesk instance
rp-cli applications list -p iot-project

# Start a new build for the application "iot-application", verbose option
rp-cli applications build iot-application -v

# Start a new test for the application "iot-application", on the latest build, verbose option
rp-cli applications test iot-application -v

# Start a new test for the application "iot-application", on the build #1068
rp-cli applications test iot-application --build 1068

# Get the list of all the builds for the application "iot-application", with verbose option
rp-cli applications builds-list iot-application -v

# Get the list of all the tests for the application "iot-application"
rp-cli applications tests-list iot-application

# Get the list of public teams in the redpesk instance, with verbose option
rp-cli teams list --verbose