How to edit configuration.yaml via CLI?

I can’t access my configuration.yaml file on the raspberry pi . only get the ha > prompt
if I type login , it gives me the # prompt , but can’t navigate thru directories.
Any help appreciate it.