get-template

Outputs all settings in a template This command can be used to output all settings in a Virtualmin template, specified either by name with the --name parameter, or by ID with the --id flag. By default only values actually set in the template are output, but you can add the --inherited flag to include settings from the default template too. By default all settings are output, formatted like: aliascopy: 1 aliasdomslimit: none aliaslimit: none append_style: 6 default: 1 dns: none ... Any newlines in multi-line values are converted to \n for the output. However, if you select to output just a single setting with the --setting option followed by a setting name, newlines in it’s value will not be converted.

Outputs all settings in a template#

This command can be used to output all settings in a Virtualmin template, specified either by name with the --name parameter, or by ID with the --id flag. By default only values actually set in the template are output, but you can add the --inherited flag to include settings from the default template too.

By default all settings are output, formatted like:

aliascopy: 1
aliasdomslimit: none
aliaslimit: none
append_style: 6
default: 1
dns: none
...

Any newlines in multi-line values are converted to \n for the output. However, if you select to output just a single setting with the --setting option followed by a setting name, newlines in it’s value will not be converted.

Command line help#

virtualmin get-template --name template-name | --id template-id
 [--setting name]
 [--inherited]

Source: https://www.virtualmin.com/docs/development/api-programs/get-template/

  • virtualmin, alias, dns, command line, template
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...