Which of the following sentences is a command?

A. Please lock the door when you leave.

B. What an amazing sunset!