<p>I found this in the fdrmprinter.def.json which you could might make a copy of and use instead for the -j option:</p>

<pre><code>"support":
    {
        "label": "Support",
        "type": "category",
        "icon": "category_support",
        "description": "Support",
        "children":
        {
            "support_enable":
            {
                "label": "Enable Support",
                "description": "Enable support structures. These structures support$
                "type": "bool",
                "default_value": false,
                "settable_per_mesh": true,
                "settable_per_extruder": false
            }
        }
    }
</code></pre>

<p>Change the "default_value" under "support_enable" to true and that could work.</p>

CC BY-SA 3.0
2017-10-17T20:38:40.953Z
2017-10-17T20:38:40.953Z
Steve-O-Rama
<p>Is it possible to use Cura Engine (the command line tool) to generate a gcode with support?</p>

<p>Here is what I do now: </p>

<pre><code>CuraEngine slice -j /usr/share/cura/resources/definitions/ultimaker2.def.json -l my.stl -o my.gcode
</code></pre>

<ultimaker-cura><g-code><support-structures>
Adding support when generating g-code from Cura Engine (command line)?
thedp
# Adding support when generating g-code from Cura Engine (command line)?

(Asked by: username_0 on 2017-10-17)

Is it possible to use Cura Engine (the command line tool) to generate a gcode with support?
Here is what I do now: 
CuraEngine slice -j /usr/share/cura/resources/definitions/ultimaker2.def.json -l my.stl -o my.gcode

**Tags:** ultimaker-cura, g-code, support-structures

---

## 1 answers

### Answer by username_1 on 2017-10-17. Score: 4 | Accepted answer

I found this in the fdrmprinter.def.json which you could might make a copy of and use instead for the -j option:
"support":
    {
        "label": "Support",
        "type": "category",
        "icon": "category_support",
        "description": "Support",
        "children":
        {
            "support_enable":
            {
                "label": "Enable Support",
                "description": "Enable support structures. These structures support$
                "type": "bool",
                "default_value": false,
                "settable_per_mesh": true,
                "settable_per_extruder": false
            }
        }
    }

Change the "default_value" under "support_enable" to true and that could work.


---

