Skip Navigation

OS commands for the
Optics
agent

The
Optics
agent installer supports the following OS commands.

Windows

Actions
Commands
Specify the installation directory
INSTALLFOLDER=
<path>
Specify the directory for the local
Optics
data store
OPTICSROOTDATAFOLDER=
<path>
Perform a silent installation with no user action required
Any of the following:
  • -q
  • -quiet
  • -s
  • -silent
Create an installation log file
Any of the following:
  • -l
    <path_for_log>
  • -log
    <path_for_log>
Uninstall the
Optics
agent
<Optics_program_directory>
\CyOpticsUninstaller.exe
For example:
C:\Program Files\Cylance\Optics\CyOpticsUninstaller.exe
To perform a silent uninstall that doesn't require user interaction, add the following commands:
--use_cli -t v20
For example:
C:\Program Files\Cylance\Optics\CyOpticsUninstaller.exe --use_cli -t v20

macOS

Action
Commands
Install the
Optics
agent
sudo installer -pkg CylanceOPTICS.pkg -target /
Install the
Optics
agent and create an installation log file
sudo installer -verboseR -dumplog -pkg CylanceOPTICS.pkg -target /
Start the
Optics
service
sudo launchctl load /Library/LaunchDaemons/com.cylance.cyoptics_service.plist
Stop the
Optics
service
sudo launchctl unload /Library/LaunchDaemons/com.cylance.cyoptics_service.plist
Uninstall the
Optics
agent
sudo /Applications/Cylance/Optics/Uninstall\ CylanceOPTICS.app/Contents/MacOS/Uninstall\ CylanceOPTICS
Uninstall the
Optics
agent with no UI
sudo /Applications/Cylance/Optics/Uninstall\ CylanceOPTICS.app/Contents/MacOS/Uninstall\ CylanceOPTICS -noui
If you want to use this command, additional actions are required on
macOS
11.x devices. For more information, see Troubleshooting: Removing the Optics agent from a macOS device.

Linux

Action
Commands
Install the
Optics
agent on RHEL/CentOS, SUSE, or
Amazon
Linux
2
yum install CylanceOPTICS-
<version>
.rpm
, where
<version>
is the version of the .rpm file.
Install the
Optics
agent on
Ubuntu
dpkg -i cylance-optics_
<version>
_amd64.deb
, where
<version>
is the version of the .deb file.
Start the
Optics
service
systemctl start cyoptics.service
Stop the
Optics
service
systemctl stop cyoptics.service
Uninstall the
Optics
agent on RHEL/CentOS, SUSE, or
Amazon
Linux
2
rpm -e CylanceOPTICS
Uninstall the
Optics
agent on
Ubuntu
dpkg -P cylance-optics