cancel
Showing results for 
Search instead for 
Did you mean: 

Artifactory configuration for STM32Cube for VSCode

bored_wombat
Associate

Hi all!

My work uses artifactory extensively to proxy and filter external package suppliers, so it would be fantastic if we can configure it to support these tools as well. 

The only other artifactory thread I've seen at How to create Artifactory mirror of http://sw-cent... - STMicroelectronics Community is linked to STM32CubeIDE, so not relevant for this. 

The `cube --help` docs suggest that I should be able to configure it to refer to alternative registries for packs and bundles. However it's not clear to me exactly what the format is, which we need to setup artifactory.

Is there any documentation on how to go about configuring and fetching from the ST mirrors/sources manually or via artifactory?

$ cube
cube [FLAGS] [COMMAND | RUNTIME] [OPTIONS]
Copyright (C) 2026 STMicroelectronics.

Flags: 
        --help                          Prints this help
        --help-license                  Prints the license agreement for the 'cube' tool
        --json                          Print output as JSON (for certain flags only)
        --cwd      <arg1>               Run cube command in different working directory
        --resolve                       Print the resolved COMMAND/RUNTIME
        --list                          Lists loaded bundles
        --tool-paths                    Show the merged paths to Cube tools that will be prepended to PATH
        --show-settings                 Prints Cube configuration values
        --get-current-value <arg1>                      Prints the used values for the CLI environment, e.g. path to bundles or packs, use settings keys
        --set      <arg1> <arg2>        Sets a Cube configuration value, e.g. 'artifactory_api_key' or 'cmsis_pack_root'
        --unset    <arg1>               Removes a Cube configuration value
        --verbose                       Enables verbose output for the cube cli wrapper tool
        --no-detach                     Disables the use of 'detach' by any command or flag
        --detach                        Detaches the launched command.
        --dry-run                       For supporting commands run a command without performing any changes
        --version                       Prints the version
        --with     <arg1>               Specify a specific version or version range for a bundle to be used for the COMMAND/RUNTIME
        bundle     ...                  Install/uninstall bundles
        bundle-admin ...                        Admin tool for bundles

Environment variables:
        CUBE_BUNDLE_PATH                -- Override local bundle repository location ($HOME/.local/share/stm32cube/bundles)
        CUBE_BUNDLE_PATH_EXTRA          -- Include extra bundles in addition to installed ones (is searched recursively)
        CUBE_BUNDLE_REGISTRY            -- URL to the online cube bundle registry
        CMSIS_PACK_ROOT                 -- Path to CMSIS Pack storage ($HOME/.local/share/stm32cube/packs)
        CUBE_CACHE_PATH                 -- Path to cache storage ($HOME/.cache/stm32cube)
        CUBE_LOG_PATH                   -- Path to log storage ($HOME/.config/stm32cube/logs)
        CUBE_NETWORK_MAX_REDIRECT       -- Max number of redirect to follow (10)
        CUBE_NETWORK_RETRY              -- Number of retry attempts (5)
        CUBE_NETWORK_TIMEOUT            -- Timeout for network accesses (7200000ms)

COMMANDS: Run '[COMMAND] --help' to get more details
        arm-none-eabi-gdb     
        cmake                 
        cmsis-scanner         
        java                  
        ninja                 
        node                  
        pack                  
        programmer            
        rtos-proxy            
        starm-clangd          
        stlink-gdbserver      
        stlink-server-start   
        stlink-upgrade

 

 

0 REPLIES 0