# Build with QSC-CLI

Source: [https://docs.qualcomm.com/doc/80-65220-2/topic/using-qsc-cli_3_1.html](https://docs.qualcomm.com/doc/80-65220-2/topic/using-qsc-cli_3_1.html)

Use the Qualcomm software center command-line interface (QSC-CLI) to download and
    compile the QIRP SDK and the robotics image, and flash images using tools or
    commands.

**Prerequisites:**

- The QSC is installed using the commands in [Build with QSC-CLI](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-254/build_from_source_QSC_CLI.html) of
            *Qualcomm Linux Build Guide*.

## Download

**Steps:**

1. Log in to `qpm-cli`.
    1. Run this command to log
              in.

            qpm-cli --loginCopy to clipboard
    2. Run this command to verify if `qpm-cli` login is successful.

            qpm-cli --product-listCopy to clipboard
2. Download a particular software release of the QIRP SDK, using the following command,
            using the following tables to identify the appropriate values for the command
            arguments.

    qsc-cli download --workspace-path '<absolute_workspace_path>' --product '<Product_ID>' --release '<Release_ID>' --distribution '<Distro>'Copy to clipboard

Note: Both `--release` and `--build` options work individually
        to download a software package. If both options are provided, the `--release`
        parameter is used to trigger a download.

Table : qsc-cli download parameters

| Parameter | Description | QSC-CLI command value |
| --- | --- | --- |
| `--workspace-path` | Absolute/full workspace path | A custom value |
| `--product` | Product ID | QCM6490.LE.1.0Copy to clipboard |
| `--release` | Release ID | r00218.1Copy to clipboard |
| `--build` | Build ID | QCM6490.LE.1.0-00218-STD.PROD-1Copy to clipboard |
| `--distribution` | Distro | See the [Table : Distros and access levels](https://docs.qualcomm.com/doc/80-65220-2/topic/using-qsc-cli_3_1.html#ID-concept-d4199e276__ID-tbl-d32488e1870)<br>                table |

Table : Distros and access levels

| Access level | `Distro` | Yocto layers |
| --- | --- | --- |
| Registered developer with any email address (binaries only, without modem and<br>                  GPS) | `Qualcomm_Linux.SPF.1.0|TEST|DEVICE|RoboApiLnx` | meta-qcom<br><br><br>                <br>meta-qcom-hwe<br><br><br>                <br>meta-ros<br><br><br>                <br>meta-qcom-robotics<br><br><br>                <br>meta-qcom-robotics-distro<br><br><br>                <br>meta-qcom-robotics-sdk<br><br><br>                <br>meta-qcom-qim-product-sdk |
| Registered developer from a verified organization (binaries and selected source<br>                  for firmware images, without modem and GPS) | `Qualcomm_Linux.SPF.1.0|AP|Standard|OEM|NM_QIRPSDK` | meta-qcom<br><br><br>                <br>meta-qcom-hwe<br><br><br>                <br>meta-qcom-extras<br><br><br>                <br>meta-qcom-robotics-extras<br><br><br>                <br>meta-ros<br><br><br>                <br>meta-qcom-robotics<br><br><br>                <br>meta-qcom-robotics-distro<br><br><br>                <br>meta-qcom-robotics-sdk<br><br><br>                <br>meta-qcom-qim-product-sdk |

**Outputs:**

- Robotics images:
            `<Workspace_Path>/DEV/LE.QCROBOTICS.1.0.r1/build-qcom-robotics-ros2-humble/tmp-glibc/deploy/images/qcm6490/qcom-robotics-full-image/*`
- QIRP SDK:
            `<Workspace_Path>/DEV/LE.QCROBOTICS.1.0.r1/build-qcom-robotics-ros2-humble/tmp-glibc/deploy/qirpsdk_artifacts/qirp-sdk_<version>.tar.gz`

Note: `<Workspace_Path>` is the argument that you provide to the
          “`--workspace-path`” parameter of the download command.

## Compile and flash

To compile and flash the QIRP SDK, see [Qualcomm® Linux Build Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-254).

- To compile, see [Compile with QSC-CLI](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-254/build_from_source_QSC_CLI.html#compile).
- To flash the robotics image to the device, see [Flash images for registered users](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-254/flash_images.html).
- To install the QIRP SDK to the device, see [Flash and install](https://docs.qualcomm.com/doc/80-65220-2/topic/flash-and-install_4_3.html).

**Parent Topic:** [Build the software](https://docs.qualcomm.com/doc/80-65220-2/topic/build-the-software_4_1.html)

Last Published: Jul 08, 2024

[Previous Topic
Build with QSC Launcher](https://docs.qualcomm.com/bundle/publicresource/80-65220-2/topics/build-with-the-qcs-launcher.md) [Next Topic
Build with Github (basic layers)](https://docs.qualcomm.com/bundle/publicresource/80-65220-2/topics/build-with-github-binaries.md)