list-templates
Lists the templates used to create the community, group and users of a share.
Syntax:
shell
sfiler [options] list-templates [command options]| Command options | Required/Optional | Description |
|---|---|---|
| -n | Optional | Lists only the template with this exact name. Cannot be used with -f. |
| -f | Optional | Lists 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. |
| -si | Optional | The index of the first template to display, starting at 0. |
| -mr | Optional | The maximum number of templates to display. Use -1 to display them all. |
| -sf | Optional | The field on which the templates are sorted. Allowed value: NAME. |
| -ss | Optional | The sort order: ASC or DESC. |
| -tc | Optional | true 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.sh -l "my-user" -p "my-password" -s https://www.example.com/sfiler/server/ list-templates -f "share*" -sf NAME -ss ASCshell
sfiler.exe -l "my-user" -p "my-password" -s https://www.example.com/sfiler/server/ list-templates -f "share*" -sf NAME -ss ASC