CLI Overview
The idf-ci tool provides a command-line interface for managing builds, tests, and GitLab CI/CD operations. This document provides an overview of the CLI structure, global options, and available command groups.
Basic Usage
The basic syntax for using the idf-ci tool is:
idf-ci [GLOBAL_OPTIONS] COMMAND [COMMAND_OPTIONS] [ARGUMENTS]
Getting Help
You can get help for any command using the --help or -h option:
# Get general help
idf-ci --help
# Get help for a specific command group
idf-ci build --help
# Get help for a specific command
idf-ci build run --help
Global Options
These options are available for all commands and affect the overall behavior of the tool:
--config-file, -c PATHPath to the idf-ci config file. Use this to specify a custom configuration file instead of the default
.idf_ci.toml.idf-ci --config-file /path/to/custom.toml build run
--config VALUEOverride settings via dot-path assignments (repeatable). Values use Python literal syntax.
# single override idf-ci --config 'gitlab.build_pipeline.runs_per_job = 10' build run # multiple overrides idf-ci \ --config 'gitlab.build_pipeline.runs_per_job=10' \ --config 'gitlab.build_pipeline.workflow_name="A workflow name"' \ build run
--debugEnable debug logging. This provides detailed output for troubleshooting.
idf-ci --debug gitlab download-artifacts
Global Commands
initCreate a default
.idf_ci.tomlconfiguration file in the current directory or specified path.# Create config file in current directory idf-ci init # Create config file in specific location idf-ci init --path /path/to/project
completionsDisplay instructions for enabling shell autocompletion for the idf-ci command. Supports Bash, Zsh, and Fish.
idf-ci completions
Shell Completion
The tool supports shell autocompletion for Bash, Zsh, and Fish. Use idf-ci completions to get setup instructions for your shell.
Command Groups
For detailed guides about specific command groups:
Command Groups
Command Group Reference
For complete command syntax and options, see the reference pages: