In brief
- `-b` runs Blender in the background without the graphical interface; rendering also requires `-f` or `-a`.
- Use `-f` to render a still frame and `-a` to render an animation.
- Set the output path with `-o`; in the example, OpenEXR is specified with `-F OPEN_EXR`.
- With render commands, `-f` or `-a` must be the final argument.
What you’ll learn in this guide
You don’t always need Blender’s graphical interface to render a scene. The command line lets you render a still frame or animation from a saved .blend file, and specify the output location and some render options through commands. One distinction matters: -b runs Blender in the background without the interface; the options that start rendering a still frame or animation are -f and -a, respectively.
This method can also be useful when rendering in environments without a graphical interface or over a remote connection. The Blender manual gives SSH as an example of remote shell use. This guide covers argument order, commands for still frames and animations, output location, and file format. The examples are based on Blender’s command-line documentation; they explain how to run a render from a command, not how to change settings that affect the scene’s visual quality.
Requirements
You need an installation of Blender that can be run from the command line. In the documentation, the application is launched with the
blendercommand.
The scene you want to render must be saved as a .blend file. The examples below use file.blend as the filename.
The Blender Python API documentation is headed Blender 5.3. The command-line rendering guide is available in the current documentation; the sources don’t specify a separate version number for this guide. To see the options available in your installed version, run blender --help.
The sources don’t specify an account requirement. The steps in this guide are based on the command-line options shown in the documentation.
Argument order matters on the command line: Blender processes options in the order they’re given. As a result, options such as output format or location may not work as expected if you put them after the argument that starts rendering. The documentation recommends always making -f or -a the final argument.
Step by step: render a still frame
Specify the file and frame number. The following command runs
file.blendin the background without opening the graphical interface and renders frame 10:
blender -b file.blend -f 10Here, -b runs Blender in the background without the interface, while -f 10 specifies that only frame 10 should be rendered. So -b alone doesn’t start a render. If your file has a different name or location, replace file.blend in the example with its actual path.
Add the output location. Use
-oto specify where the render should be saved. The example below uses a five-digit placeholder for the frame number:
blender -b file.blend -o /project/renders/frame_##### -f 10The path specified with -o indicates where the output will be saved. The ##### in the source example is used to write the frame number as five digits. Set the folder and filename to suit your project; /project/renders/ is an example path, not a required location.
Specify the output format. The Blender manual shows the
-F OPEN_EXRoption to use OpenEXR instead of the format selected in the file:
blender -b file.blend -o /project/renders/frame_##### -F OPEN_EXR -f 10This command renders frame 10 and sets the output format to OpenEXR. Pay attention to capitalization: -F is the format option, while -f renders a frame. They aren’t interchangeable. The render-start option -f is at the end of the command.
Step by step: render an animation
Render the animation using the settings in the file. Use
-ato render the entire animation with the settings saved in the.blendfile:
blender -b file.blend -aIn this example, -b runs Blender in the background, and -a specifies animation rendering. If you add options such as an output path, put them before -a; leave the argument that starts the render at the end.
Specify the engine and frame range from the command line. The example in the Blender documentation selects the Cycles engine, sets the start frame to 10 and the end frame to 500, and uses two threads:
blender -b file.blend -E CYCLES -s 10 -e 500 -t 2 -a-E CYCLES sets the render engine, -s 10 sets the start frame, -e 500 sets the end frame, and -t 2 specifies the number of threads to use. The source recommends running blender -E help to see the available render engines. The frame range and thread count here come from the documentation’s example; they aren’t values that must be used for every project.
Before running the command, check the file path, frame range, output location, and format. Putting -f or -a at the end helps ensure the command follows Blender’s argument-processing order.
Common mistakes
Assuming
-bstarts the render:-bruns Blender in the background without the interface. You must also add-ffor a still frame or-afor an animation.Adding arguments after the render option: Depending on the argument order, options such as output path or format may not work as expected if you put them after
-for-a. Move the render-start option to the end.Confusing
-Fand-f: Options are case-sensitive.-F OPEN_EXRsets the output format, while-f 10specifies frame 10.Not checking the frame range: In an animation command,
-ssets the start frame and-ethe end frame. Make sure the values match the intended range before running the command.Leaving the example file or folder path unchanged:
file.blendand/project/renders/are example paths. Update them to match the file and output location you’ll use.Expecting an interface window:
-bmeans Blender runs in the background without the graphical interface. When you use this option, the process runs without opening the interface.
Using this workflow for architecture and visualization
Architecture firms, interior designers, and visualization teams can use the command line to render from a scene file without relying on the graphical interface. This approach can be useful, especially when rendering over a remote shell or working in an environment without a graphical interface. Students can also try the still-frame and animation commands separately to learn what each option does.
Before using it on a project, test with a still frame to verify the file path, output format, and location. Then add the animation range and other options if needed. Since -t lets you set the thread count from the command line, teams can test suitable values on their own systems; the two-thread example in the documentation shouldn’t be treated as a general performance recommendation.
The Blender Python API documentation also provides sections for a quick start, API overview, and reference for Python integration. Application modules such as bpy.context, bpy.data, and bpy.ops are listed there. This guide doesn’t cover writing Python scripts; if you need a script, the API documentation may be the next place to look. For command-line options and version compatibility, check the blender --help output for your installation and the relevant documentation.
Sources and license
This guide was adapted into Turkish using the Blender Python API documentation and Blender’s “Rendering From The Command Line” guide. Both sources are available under the CC BY-SA 4.0 license.
Sources
2 sourcesSource texts are not republished; short quotes are marked, everything else is our own summary and commentary.
For architecture firms and visualization teams in Turkey, command-line rendering can be practical, especially in work environments without a graphical interface or with remote access. Blender’s free and open-source nature can reduce licensing costs; however, render times depend on the hardware and scene. The two-thread value in the documentation shouldn’t be treated as a recommendation for every system.
Testing with a still frame first to verify the file path and output format makes troubleshooting easier before moving on to an animation range. Teams should also check the options available in the Blender version they use. The command line isn’t a method that replaces the interface in every situation; it’s a complementary workflow for running specific render jobs without the interface.
Frequently asked questions
How do I render a still frame in Blender from the command line?
The command `blender -b file.blend -f 10` runs the file in the background without opening the interface and renders frame 10. Replace `file.blend` with the path to your own file.
Which option do I use to render an animation from the Blender command line?
Use `-a` to render the entire animation with the settings saved in the file. You can specify the frame range with `-s` and `-e`.
Can I save a Blender render as OpenEXR from the command line?
Yes. The documentation shows `-F OPEN_EXR` as the option for setting the output format to OpenEXR. Write `-F` in uppercase.



