- Docs
- Client Apps
- Command Line Interface (CLI) App
- Using the CLI to Perform Administrator Actions
- Managing Remote Server Mounts
Managing Remote Server Mounts
As an administrator, you can manage Remote Server Mounts within your Files.com site using the CLI App.
List All Remote Server Mounts
files-cli behaviors list --filter-by="behavior=remote_server_mount"
Creating a Remote Server Mount
First, you'll need the ID of the Remote server which can be found using this command:
files-cli remote-servers list
Then you can configure the Remote Server Mount using this command:
files-cli behaviors create --path "path/to/folder" --behavior "remote_server_mount" --value '{ "remote_server_id": <ID>, "remote_path": "/remote/server/path/to/remote/folder" }'
In the above command, replace <ID> with the ID found with the previous list command.
Updating a Remote Server Mount
You'll need the ID of the Remote server which can be found using this command:
files-cli remote-servers list
Then you can update the Remote Server Mount using this command:
files-cli behaviors update --path "path/to/folder" --behavior "remote_server_mount" --value '{ "remote_server_id": <ID>, "remote_path": "/updated/path/to/remote/folder" }'
In the above command, replace <ID> with the ID found with the previous list command.
Delete a Remote Server Mount
files-cli behaviors delete --id=12345
Get The File Orchestration Platform Today
4,000+ organizations trust Files.com for mission-critical file operations. Start your free trial now and build your first flow in 60 seconds.
No credit card required • 7-day free trial • Setup in minutes