Docker образ FreeCAD в режиме командной строки (CLI)

From FreeCAD Documentation
Jump to navigation Jump to search
This page is a translated version of the page FreeCAD Docker CLI mode and the translation is 39% complete.
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎português do Brasil • ‎русский

This documentation is not finished. Please help and contribute documentation.

GuiCommand model explains how commands should be documented. Browse Category:UnfinishedDocu to see more incomplete pages like this one. See Category:Command Reference for all commands.

See WikiPages to learn about editing the wiki pages, and go to Help FreeCAD to learn about other ways in which you can contribute.


Docker image of FreeCAD compiled without GUI. This Docker image is especially for developers who only want to use FreeCAD in the command-line interface (CLI).


All of FreeCAD's dependencies are already installed, compatible with each other, and configured appropriately, allowing you to get started developing very quickly.

  • Easy to use and lightweight.
  • It gives better performance in terms of speed.
  • No need to add FreeCAD paths to import it into Python.

Репозиторий Docker


  • 3 GB of free storage
  • Docker


  1. Pull the Docker image.
    docker pull amrit3701/freecad-cli:latest
  2. When you successfully pulled Docker image, now you can run image.
    docker run -it amrit3701/freecad-cli:lastest bash

Дополнительная информация

Extend Docker image

You can also extend this Docker images to add additional dependencies for your project. For eg

# Dockerfile

FROM amrit3701/freecad-cli:lastest

# Add additional dependencies

# pip3.8 install <some_package>

Import FreeCAD in Python

After running Docker image, just run Python.

$ docker run -it amrit3701/freecad-cli:lastest bash
root@f0ec904cf9b9:/# python3.8
Python 3.8.5 (default, Jul 20 2020, 19:48:14)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import FreeCAD
>>> import Part
>>> import Draft
>>> import Arch

Запуск FreeCADCmd

To launch FreeCAD inside Docker image, just run FreeCADCmd command.


FreeCAD forum thread: