.\" generated with Ronn-NG/v0.9.1 .\" http://github.com/apjanke/ronn-ng/tree/0.9.1 .TH "PUPPET\-GENERATE" "8" "March 2021" "Puppet, Inc." "Puppet manual" .SH "NAME" \fBpuppet\-generate\fR \- Generates Puppet code from Ruby definitions\. .SH "SYNOPSIS" puppet generate \fIaction\fR .SH "OPTIONS" Note that any setting that's valid in the configuration file is also a valid long argument, although it may or may not be relevant to the present action\. For example, \fBserver\fR and \fBrun_mode\fR are valid settings, so you can specify \fB\-\-server \fR, or \fB\-\-run_mode \fR as an argument\. .P See the configuration file documentation at \fIhttps://puppet\.com/docs/puppet/latest/configuration\.html\fR for the full list of acceptable parameters\. A commented list of all configuration options can also be generated by running puppet with \fB\-\-genconfig\fR\. .TP \-\-render\-as FORMAT The format in which to render output\. The most common formats are \fBjson\fR, \fBs\fR (string), \fByaml\fR, and \fBconsole\fR, but other options such as \fBdot\fR are sometimes available\. .TP \-\-verbose Whether to log verbosely\. .TP \-\-debug Whether to log debug information\. .SH "ACTIONS" .TP \fBtypes\fR \- Generates Puppet code for custom types \fBSYNOPSIS\fR .IP puppet generate types [\-\-format \fIformat\fR] [\-\-force] .IP \fBDESCRIPTION\fR .IP Generates definitions for custom resource types using Puppet code\. .IP Types defined in Puppet code can be used to isolate custom type definitions between different environments\. .IP \fBOPTIONS\fR \fI\-\-force\fR \- Forces the generation of output files (skips up\-to\-date checks)\. .IP \fI\-\-format \- The generation output format to use\. Supported formats: pcore\. .SH "EXAMPLES" \fBtypes\fR .P Generate Puppet type definitions for all custom resource types in the current environment: .IP "" 4 .nf $ puppet generate types .fi .IP "" 0 .P Generate Puppet type definitions for all custom resource types in the specified environment: .IP "" 4 .nf $ puppet generate types \-\-environment development .fi .IP "" 0 .SH "COPYRIGHT AND LICENSE" Copyright 2016 by Puppet Inc\. Apache 2 license; see COPYING