Use a temporary puppet-code.conf file

You can use a custom configuration file to temporary override default, global, and user-specific configuration settings by specifying the temporary file on the command line.

If you want to temporarily override default, global, and user-specific configuration settings, use the --config-file option to specify the file path to an alternative puppet-code.conf file. For example

puppet-code --config-file ~/.puppetlabs/myconfigfile/puppet code.conf deploy --all

This configuration file is only used for this one deployment.