Halliday & Matthiessen (2014: 195):
In most accounts of English grammar the imperative is presented as if it were a special case, without any explanation. But it is not; it is simply an instance of this general principle by which a Subject is ‘understood’. Being a demanding clause, its unmarked Subject is ‘you’.