Cal. Civ. Code § 1002
(a) Subject to the provisions of Article 3 (commencing with Section 1245.310) of Chapter 4 of Title 7 of Part 3 of the Code of Civil Procedure, the power of eminent domain may be exercised by an owner of real property to acquire a temporary right to enter upon adjacent or nearby property to repair or reconstruct land or improvements, if all of the following conditions are established or met:
(b) No entry shall be made upon the property to be condemned until an eminent domain proceeding has been commenced and then only after a court order permitting entry is issued or after judgment is entered for the plaintiff.
A deposit of security, in the form of cash or a bond, shall be made to the court in an amount the court determines is necessary to permit the owner of the adjacent or nearby property to restore the property to the condition it was in prior to the entry, if the person exercising the power of eminent domain does not do so within a reasonable period of time as determined by the court.