How can I downgrade streamlit version in terminal?

i have updated streamlit latest version but now I want to go back to the previous version how can I downgrade the streamlit version in the terminal because my hosted website won’t work properly in the latest version?

It depends on the package manager you used to install streamlit and should be explained in its documentation.

If you used pip, read the user guide, in particular the section about installing packages.