Installation
Command Line Tool
Section titled “Command Line Tool”If you intend to use Magika only as a command line, you can install it in a number of ways:
pipx install magikacurl -LsSf https://securityresearch.google/magika/install.sh | shwget -qO- https://securityresearch.google/magika/install.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://securityresearch.google/magika/install.ps1 | iex"Python package
Section titled “Python package”Magika python package is available as magika on PyPI:
pip install magikaIf you want to test out the latest release candidate from pypi, you can install it with
pip install --pre magikaJavaScript Package
Section titled “JavaScript Package”JavaScript / TypeScript bindings can be installed with npm:
npm install magikaDocker
Section titled “Docker”If you want to test Magika’s latest version (from git) within a Docker container, you can run:
git clone https://github.com/google/magikacd magika/docker build -t magika .docker run -it --rm -v $(pwd):/magika magika -r /magika/tests_data/basic