I use Flixel from the command line, because I have my own set of programming tools that I like to use, like Textadept and make. I figured this tutorial would help the people that also like to develop this way. I'm going to try to be OS-agnostic though, but since you're interested in using Flixel from the command line too, I'm pretty sure you can figure out what to do!
First, the regular stuff. Download the
Flex SDK and Flixel. Extract and install the SDK, and extract Flixel.
Now, make sure the /bin directory of the Flex SDK is in your path.
And now... you're pretty much done. Actually using Flixel is just a matter of messing with mxmlc's command line options. To avoid the hassle of copying or importing Flixel into everything you make, use mxmlc's -sp switch. Example:
mxmlc -sp /path/you/extracted/flixel_v1.0 -- YourGame.as
That tell's mxmlc where to look for Flixel, and YourGame.as is the Actionscript file that extends the FlxGame class. Here's a generic makefile I use when making games:
MXMLC = mxmlc
FLIXEL = /path/to/flixel_v1.0
SRC = Game.as OtherScript.as AnotherScript.as
MAIN = Game.as
SWF = Game.swf
$(SWF) : $(SRC)
$(MXMLC) -sp $(FLIXEL) -o $(SWF) -- $(MAIN)
The SRC variable is just a list of all the game's source files, so make knows when they've been changed. The MAIN variable is the source file that extends FlxGame.
If anything's not clear, just let me know, I'll try to straighten it out.