The Mac App Store might not accept command-line apps. They may require apps to be in a Mac app bundle.
One way to build your app for the Mac App Store is to create a simple Mac GUI app project in Xcode and bundle your command-line app with the GUI app. Use the Process class to run the command-line app. You will have to conform to the App Sandbox guidelines to get approved on the Mac App Store.
Many Mac apps that bundle command-line apps aren't in the Mac App Store because of the App Sandbox restrictions. You might have to distribute your app from your own website.
Topic:
App Store Distribution & Marketing
SubTopic:
TestFlight