# file-type-cli > Detect the file type of a file or stdin ## Install ```sh npm install --global file-type-cli ``` ## Usage ``` $ file-type --help Usage $ file-type $ file-type < Example $ file-type unicorn.png png image/png ``` [Supported file types](https://github.com/sindresorhus/file-type#supported-file-types) ## Related - [file-type](https://github.com/sindresorhus/file-type) - API for this module