Multipurpose tool for handling OpenStreetMap (OSM) files. More information: https://osmcode.org/osmium-tool/manual.
osmium fileinfo {{path/to/input.osm}}
osmium show {{path/to/input.osm}}
osmium cat {{path/to/input.osm.pbf}} {{[-o|--output]}} {{path/to/output.osm}}
osmium extract {{[-b|--bbox]}} {{min_longitude}},{{min_latitude}},{{max_longitude}},{{max_latitude}} {{path/to/input.pbf}} {{[-o|--output]}} {{path/to/output.pbf}}
osmium extract {{[-p|--polygon]}} {{path/to/polygon.geojson}} {{path/to/input.pbf}} {{[-o|--output]}} {{path/to/output.pbf}}
osmium tags-filter {{path/to/input.pbf}} amenity=restaurant {{[-o|--output]}} {{path/to/output.pbf}}
osmium tags-filter {{path/to/input.pbf}} w/highway {{[-o|--output]}} {{path/to/output.pbf}}
osmium tags-filter {{path/to/input.pbf}} wr/building {{[-o|--output]}} {{path/to/output.pbf}}