You would need to get the file contents in hexadecimal form, then pass it as a parameter to the publish command. If you are using bash on Linux, this is an example:
multichain-cli chain1 publish stream1 file1 `xxd -p README.txt | tr -d '\n'`
You need to substitute as appropriate:
- chain1 for your blockchain name
- stream1 for your stream name
- file1 for the stream item key
- README.txt for the file name
If you get an error from bash about the argument list being too long, you'll need to do this via the JSON-RPC API instead.