The direct imperative is replaced by the to-infinitive in the reported speech.
Therefore most often used verbs in the main sentence are : to tell, to be, to ask, to want, to order, to command ….
Examples
Close the windows, please. | He asked me to close the windows. |
Be there at noon. | He told me to be there at noon. |
Tell me all about the project. | She asked me to tell him all about the project. |
Be here in time. | I was told to be there in time. |