Depends on the type - a woven type should be machine washable - look for washing instructions on a label on the curtain, or do a search online. If not the woven type, then it probably isn’t machine washable, but you can chuck it in the bath and wash it like a dog.
Throw it in a bucket with some bleach and mix it with a stick or hand with washing up gloves on, should get rid of any mould/dirt/scum etc then rinse it and hang it back up. Steam from shower will get any creases out.
Lol, I tried cleaning it in the shower while it was hung, utter Ballache, it has a sort of satin finish so looks awful when dirty , then I took it out and tried scrubbing it with a scrubbing brush, half worked, I think I knew there would be no easy solution! Was hoping for a miracle