To start using SQLite3 in a terminal, run the command:
sqlite3 <database name>.db
This will create a new database if the specified name does not already exist.
.schema
Enter csv mode to specify that a csv file will be imported, then import it
.mode csv
.import <csv name>.csv <table name>
Here are some useful sqlite3 commands: