BART's 'RESTORE' command has a '-t' switch which can be used to specify timeline_id.
Please reffer to section 5.4.7 of the BART documentaion at the following link:
Hope this is what you are looking for.
Bart uses the --target-xid, --target-tli, and --target-timestamp arguments to construct a recovery.conf file.
When the database server starts (after the restore operation completes), the server reads the recovery.conf file and replays the required WAL (write-ahead LOG) files, stopping at the specified point (if you've specified a --target-xid or --target-timestamp).
You can learn more about the recovery.conf file here: https://www.postgresql.org/docs/9.6/static/recovery-target-settings.html.
When you invoke bart with the --target-xid option, bart writes a recovery_target_xid to the recovery.conf file.
When you invoke bart with the --target-tli option, bart writes a recovery_target_timeline to the recovery.conf file.
When you invoke bart with the --target-timestamp option, bart writes a recovery_target_time to the recovery.conf file.
Here are a few articles/blogs that you may find helpful:
Hope that helps.