Index advice usually means reading query plans and guessing. The SQLite shell has an experimental command that makes the guess for you: you type .expert, then your query, and it proposes an index.
The example from the docs:
sqlite> CREATE TABLE x1(a, b, c);
sqlite> .expert
sqlite> SELECT * FROM x1 WHERE a=? AND b>?;
CREATE INDEX x1_idx_000123a7 ON x1(a, b);
SEARCH TABLE x1 USING INDEX x1_idx_000123a7 (a=? AND b>?)
It prints the CREATE INDEX statement it recommends and the plan the query would use with it, in EXPLAIN QUERY PLAN format. After you create an index with an equivalent definition and ask again, it answers (no new indexes) and shows the plan with the index that is there.
Note that .expert has to be typed each time, directly before the query. It does not stay on.
There are two options. --verbose gives a more detailed report for every query. --sample PERCENT defaults to 0, which means it recommends from the query and schema alone. With a non-zero value it builds data statistics from that percentage of the rows, which can give better advice for tables with unusual data. The docs say that for small databases there is usually no reason not to use --sample 100, and for large tables a smaller number keeps it fast.
The caveat is the first line of that docs section: the command is experimental and may be removed or changed incompatibly. Treat the suggestions as input, since an index also makes writes a bit slower and takes space. I would look at the query plan with and without the index before deciding.
Further reading: SQLite: Command Line Shell For SQLite (Index Recommendations)