# file-type-cli
> Detect the file type of a file or stdin

## Summary
Detect file types by magic bytes from files or stdin

## Capabilities
- Detect file type by content
- Read from file or stdin
- Identify by magic bytes

## When to Use
- When identifying unknown file types
- When file extensions are missing or wrong

## When NOT to Use
- When file extensions are reliable

## Related Tools
- [conan](/tools/conan) (complementary)

---
Source: https://littlescripts.sh/tools/file-type-cli
