Skip to content

Working on the Command Line

The robotcode command brings RobotCode to the terminal, to CI pipelines and to scripts. It runs in the Python environment of your project, next to Robot Framework and your libraries, and reads the project's robot.toml files and the profiles you select with -p, as RobotCode does in VS Code and PyCharm. To install it, see Get Started on the Command Line; the CLI reference lists every command and option.

Task Command Guide
Run the tests or tasks robotcode robot, or its alias robotcode run robot.toml on the Command Line
See which suites, tests, tasks and tags a run would pick up, without running anything robotcode discover Discovering Tests, Tasks and Suites
Check the code for problems, also in a CI pipeline robotcode analyze code Analyzing Code
Find out what a finished run contained and why tests failed robotcode results Analyzing Run Results
Try keywords line by line robotcode repl Interactive Robot Framework with robotcode repl
Debug a run in the terminal robotcode robot-debug Command-line debugging with robotcode robot-debug
Read the documentation of a library or resource file robotcode doc Browsing Library Documentation
Run the tests through a command such as xvfb-run robotcode --wrapper …, or the setting wrapper Running Tests Through a Wrapper
See the configuration and the profiles a command gets robotcode config, robotcode profiles Troubleshooting robot.toml

The options of robotcode itself, such as -p for a profile, go before the name of the command, the options of the command after it; see Where the options go. AI agents can work through the same commands; Working with AI Agents sets up RobotCode's chat plugin for them.

Released under the Apache-2.0. Copyright © 2022-present Daniel Biehl