〜なり〜なり
either … or (whatever works)
Noun / Verb dictionary form + なり、… + なり
Sign up free to review this point on a spaced schedule.
AなりBなり gives two examples of acceptable options, meaning "do either, or something like that": 電話なりメールなりで連絡してください, "please get in touch by phone, email or whatever".
It's usually used in suggestions, advice and instructions: しなさい, してください, 好きにすればいい. The options are examples, and there may be others. It's often said to someone junior or close, so it can sound a little bossy.
Compare か〜か (N5), a neutral "or", and だの〜だの, which lists complaints.
Don't confuse it with なり after a verb (N1), "as soon as": 帰るなり寝た.
Examples
電話なりメールなりで連絡してください。
Please get in touch by phone, email or whatever.
分からなければ、先生に聞くなり、辞書で調べるなりしなさい。
If you don't understand, ask your teacher or look it up, or something.
休みの日は、映画を見るなり買い物に行くなり、好きにすればいい。
On your day off, see a film, go shopping, do whatever you like.
捨てるなり売るなり、好きにしていいよ。
Throw it away or sell it, do what you like.
コーヒーなり紅茶なり、お好きなものをどうぞ。
Coffee, tea, have whatever you like.