HAXE(1)
π HAXE(1) π
okay bestie, welcome to the General Commands Manual entry for haxe β the one and only command-line compiler for Haxe β¨ put your hair up, we're compiling.
π NAME π
haxe β compile Haxe programs to SWF, Neko, JavaScript, PHP, C++, Java, C#, Python, Lua, or HashLink. yes, ALL of those. she contains multitudes. π
β¨ SYNOPSIS β¨
haxe -main class
[-swf9|-swf|-js|-neko|-php|-cpp|-as3|-cs|-java|-python|-hl|-lua] output
[options...]
literally just: pick a target, pick an output, tell her where -main lives, and go off. π«Ά
π¦ DESCRIPTION π¦
haxe is a command-line compiler which compiles Haxe programs into Flash SWF, JavaScript, ActionScript, PHP, C++, Java, C#, Python, Lua, Neko bytecode, or HashLink bytecode. one compiler, twelve-ish vibes, no notes. π
Haxe programs are syntactically similar to JavaScript β like, cousins energy β but they have a full-featured static type system with generics, compile-time macros, generalized algebraic datatypes, and more. the way that she has generics AND macros AND GADTsβ¦ main character behavior fr fr ππ
π OPTIONS π
-cppath β Add a directory to find source files. tell her where your stuff lives bestie π-jsfile β Compile code to JavaScript file. π-luafile β Compile code to Lua file. π-swffile β Compile code to Flash SWF file. the classic, the icon, the legend π«-as3directory β Generate AS3 code into target directory.-nekofile β Compile code to Neko Binary. π±-phpfile β Generate PHP code into target directory.-cppfile β Generate C++ code into target directory.-cppiafile β Generate code to Cppia file.-csdirectory β Generate C# code into target directory.-javadirectory β Generate Java code into target directory. β-pythonfile β Generate Python code as target file. π-hlfile β Compile HL code as target file.-xmlfile β Generate XML types description.-mainclass β Select startup class. the main character of YOUR main character β¨-liblibrary[:version] β Use a haxelib library. optional:versionif you're feeling specific π-Dvar[=value] β Define a conditional compilation flag.-vβ Turn on verbose mode. she will NOT stop talking and honestly? we love that for her ππ-debugβ Add debug information to the compiled code.-helpβ Show extended help information.--helpβ Show extended help information. (same energy, two dashes, still iconic π«Ά)--help-definesβ Print help for all compiler specific defines.--help-metasβ Print help for all compiler metadatas.<dot-path>β Compile the module specified by dot-path. just yeet the dotted path in there, no flag needed π
π AUTHOR π
Haxe is currently maintained by the Haxe Foundation. It was originally written by Nicolas Cannasse for Motion-Twin. legends only, no cap π«Άβ¨
πΈ SEE ALSO πΈ
haxelib(1). her bestie, her ride-or-die, the library manager of the group chat π- https://haxe.org/. go. click. slay. πβ¨
and that's the whole page bestie β this version is from May 12, 2017, and yeah, the footer still says HAXE(1) down there in the corner, being all mysterious. π now go compile something iconic. mwah. π
ππ¦
π¦ where this page comes from
- debian bookworm: haxe 1:4.2.5-1 Β· MIT
- debian trixie: haxe 1:4.3.6-3 Β· MIT
- ubuntu jammy: haxe 1:4.2.4-1build1 Β· MIT
- ubuntu noble: haxe 1:4.3.3-1build2 Β· MIT
- ubuntu questing: haxe 1:4.3.7-1
- ubuntu resolute: haxe 1:4.3.7-1.1 Β· MIT
- ubuntu stonking: haxe 1:4.3.7-1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms