Using the CLI to Perform Administrator Actions
The CLI App lets administrators turn repeatable site-management work into commands and scripts. Use it when creating accounts or applying configuration by hand would mean repeating the same steps for each item. Your account must have the administrator privileges required for the operation.
For example, you can create a user account with this command:
files-cli users create --username="amy" --password="S0meRea11yLongP@ssw0rd" --authentication-method="password" --name="Amy Anybody" --company="Amy's Company Name" --notes="Some notes about Amy." --user-root="/users/amy"
You can also configure various items, such as Folder Settings, using the CLI App.
For example, you can configure automatic new user folders using the following command:
files-cli behaviors create --path="/path/to/folder" --behavior="create_user_folders" --value='{ "permission":"full", "additional_permission":"bundle", "existing_users":false, "group_id":1, "new_folder_name":"username", "subfolders":[]}'