93
Running the CommandApp from a Command Line
The Facilis CommandApp can be run from the CLI on Windows, Mac, and Linux. This gives
users the ability to script and automate TerraBlock Manager commands.
The
CommandApp must remain in the manager folder in order to run.
The application allows for certain variables to be set when running.
CommandApp.exe -i ipaddr -u username -p password -command
-i
– Specify the IP address of the TerraBlock server if connecting via Ethernet.
-u
– Specify the username you wish to log into the Terrablock server with.
-p
– Specify the password if username and password login is enabled on the Terrablock
server. Enter “” for no password.
-h
– Displays the CommandApp help menu.
- command – where command is one of the following:
-l
- list volumes
-f
- list users
-s
- list system
-r
- remount multiwrite volumes
-m
- mount volume
-mr
- mount read only
-e
- unmount volume
-v
- unmount all volumes
Windows
On windows you will use the command prompt to run the CommandApp. You can launch
the Command Prompt by going to the Start Menu and choosing ‘Run’. In the ‘Run’
window, type “cmd” and hit enter.
In the command prompt “cd” to the directory containing the CommandApp. This should
be the Windows Manager/CommandApp directory. From here you can launch the
CommandApp with any of the variables above.
The example below would cd to the Windows Manger directory in Program Files then
remounts Multi User Write volumes via Ethernet from the server at IP address
192.168.1.1
. In this example the CommandApp connects to the server using user
CommandAppUser
with no password.
cd \Program Files\Windows Manager\CommandApp
TerraBlockManager.exe -i 192.168.1.1 -u CommandAppUser -p ""
–
r
Windows 8/10 will require you set the application to run as an
administrator in the application properties.
The CommandApp on windows needs to be renamed to match the
TerraBlock Manager exactly in order to pull the correct mount properties.