ODK aggregate data download

I am new to ODK forms.
I have two questions How to automate the form from ODK briefcase.I have seen somewhere that we can use CLI to automate. Can some provide me the link???

What are the ways to store data in database????

See https://docs.opendatakit.org/aggregate-data-access for how to get data out of Aggregate and https://docs.opendatakit.org/briefcase-using/#working-with-the-command-line for using the Briefcase CLI.

What i mean to ask is once after I download the CSV file using ODK briefcase.
I have my database in sqlserver. DO we have to manually type the data in to databases????
or is there any automatic process to do that??/

Do we have download any thing in order make the work in command line??