If you want to copy only the schema from an sqlite database file, but not the data, this command will do the trick
sqlite3 mydatabase.sqlite ".schema --nosys" | sqlite3 copy.sqlite
If you want to copy only the schema from an sqlite database file, but not the data, this command will do the trick
sqlite3 mydatabase.sqlite ".schema --nosys" | sqlite3 copy.sqlite