Skip to content

list-templates ​

Available in4.21.0 +

Lists the share templates, used to create the community, group and users of a share.

Syntax:

shell
sfiler-admin [options] list-templates [command options]
Command optionsRequired/OptionalDescription
-nOptionalLists only the template with this exact name. Cannot be used with -f.
-fOptionalLists only the templates whose name contains this value, or matches it when it contains *, which stands for any text. The value is not case-sensitive. Cannot be used with -n.
-siOptionalThe index of the first template to display, starting at 0.
-mrOptionalThe maximum number of templates to display. Use -1 to display them all.
-sfOptionalThe field on which the templates are sorted. Allowed value: NAME.
-ssOptionalThe sort order: ASC or DESC.
-tcOptionaltrue or false: asks the server to count all the matching templates. The command does not display that count.

Without options, the command lists all the templates. It displays the following columns: ID, Name, Default Template, User ID, Group ID, Community ID and Default Community For New Users.

Example:

shell
sfiler-admin.sh -l my-admin -p 012345 -s https://www.example.com/sfiler/server/ list-templates -f "share*" -sf NAME -ss ASC
shell
sfiler-admin.exe -l my-admin -p 012345 -s https://www.example.com/sfiler/server/ list-templates -f "share*" -sf NAME -ss ASC