# Command line app

**URL:** <https://forum.juce.com/t/command-line-app/1993>\
**Category:** General JUCE discussion\
**Created:** [August 8, 2007, 7:22am UTC](https://forum.juce.com/t/command-line-app/1993 "2007-08-08T07:22:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![graffiti](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@graffiti](https://forum.juce.com/u/graffiti)\
**Post date:** [August 8, 2007, 7:22am UTC](https://forum.juce.com/t/command-line-app/1993/1 "2007-08-08T07:22:22Z")

</div>

Hi,

When using Juce within a command line app, is it best to still create a JUCEApplication and invoke it in the usual way, or is it safe to use the Juce libs (not the GUI stuff, just all the other stuff) from a standard main() function?

If the former, which member of JUCEApplication becomes the place to put all yer gubbins? initialise() ??

Thanks!

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [August 8, 2007, 8:08am UTC](https://forum.juce.com/t/command-line-app/1993/2 "2007-08-08T08:08:02Z")

</div>

No, there’s no need for all that - just write a main(), and call juce\_InitialiseNonGUI() at the start of it - check out the BinaryBuilder project in juce/extras

---

<div class="post-metadata">

**Author:** ![graffiti](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@graffiti](https://forum.juce.com/u/graffiti)\
**Post date:** [August 8, 2007, 8:55am UTC](https://forum.juce.com/t/command-line-app/1993/3 "2007-08-08T08:55:26Z")

</div>

ah super,  
Thanks Jules 🙂

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 10:14am UTC](https://forum.juce.com/t/command-line-app/1993/4 "2017-05-12T10:14:35Z")

</div>

Closed on May 12, 2017, 10:14am UTC


