I administrate MacBooks (os version 10.13) most of the time remotely and as much as possible from terminal only.
I know how to display Hard drives in the sidebar of the Finder using the graphical interface > Finder > Preferences…
Is it possible to enable this from terminal?
(sfltool is not available anymore since 10.13+)
Best Answer
Here's my solution based on the link shared by @sansSpoon:
You can use this python lib: FinderSidebarEditor
Simply put it in your python path then in python, you can edit your Finder Sidebar easily: