Did you see the documentation? If you did, and still weren’t able to figure out it I would be happy to hear your feedback so that it can be improved.
You use Literate.notebook like this:
using Literate
Literate.notebook("inputfile.jl")
which will create a file inputfile.ipynb in the same directory.