Was Tel Aviv ever the capital of Israel?

It was the temporary capital of the state of Israel for a short period between 1948 to 1949.

The Knesset moved to Jeursalem in December 1949