Common Command Combinations#
When working with Silicon Labs Tool (SLT) and the Silicon Labs Configurator command-line interface (SLC-CLI), you often run the same sequence of commands to perform common development tasks. Whether you are setting up a new workspace, generating a project, updating a software development kit (SDK), or troubleshooting a build, combining the right SLT and SLC-CLI commands can simplify your workflow and reduce repetitive manual steps.
Rather than thinking of SLT and SLC-CLI as separate tools, think of them as complementary parts of the same development workflow.
SLT manages SDKs, development tools, and workspace configuration.
SLC-CLI uses those SDKs and tools to generate, configure, and manage your application projects.
The following examples describe common command combinations used throughout the software development lifecycle.
Locate Development Tools Dynamically#
Sometimes your scripts need to invoke development tools directly.
Instead of assuming the tools are available on the system PATH, ask SLT where they are installed.
SLC="$(slt where slc-cli)" "$SLC" generate app.slcp
The same approach works for other tools managed by SLT.
COMMANDER="$(slt where commander)" CMAKE="$(slt where cmake)" NINJA="$(slt where ninja)"
Using slt where ensures that your automation always uses the correct tool versions.
Generate a Project Using a Specific SDK#
Occasionally, you may want to generate a project using a different SDK version than the one configured for your workspace.
To use a different SDK, combine slt where with the --sdk option.
SDK="$(slt where simplicity-sdk/*specific_verson*)" slc generate app.slcp --sdk "$SDK"
For example, replace *specific_version* with 2025.6.2.
The --sdk option overrides the default SDK only for the current command and does not change your workspace configuration.
Browse the SDK During Development#
You often need to inspect SDK files, examples, or documentation.
Instead of searching the file system, combine slt where with shell commands.
cd "$(slt where simplicity-sdk)"
This command changes the current directory to the SDK installation and saves time during development.