This guide walks you through the complete FZX2 workflow: creating a project, declaring dependencies, building aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/WyattBrashear/507ex-utils2/llms.txt
Use this file to discover all available pages before exploring further.
.507ex executable, executing it locally, and optionally uploading it to a CAR server for distribution. By the end you will have a working executable that anyone with FZX2 installed can run with a single command.
Make sure FZX2 is installed before continuing. See the installation guide if you haven’t set it up yet.
Create your project directory
Create a directory for your project. FZX2 will package everything inside it.Your finished project structure will look like this:
Add a runfile
The This is a plain-text file containing a single shell command. FZX2 executes this command verbatim inside a temporary directory when
runfile tells FZX2 how to start your project when someone runs the executable. It must exist — fzx2 build will raise an error without it.Create my_app/runfile with the shell command that starts your application:fzx2 exec is called.Add a dependfile (optional)
The The format has three parts:
dependfile declares pip packages that your project requires. FZX2 reads this at execution time and installs any missing packages before running the executable, so the person running the file does not need to set up a virtual environment manually.Create my_app/dependfile:!PIP|<install command>— the command FZX2 uses to install packages!PLATFORM <platform>— target platform constraint;*means all platforms- One package name per line after that
Add your main script
Add the Python script that your Replace this with your actual application code. The file just needs to exist at the path referenced in your
runfile calls. Create my_app/main.py:runfile.Build the executable
Run FZX2 will:
fzx2 build with the path to your project directory:- Verify that
my_app/runfileexists - Zip the directory contents
- Compute a BLAKE2s hash of the archive
- Prepend the 507ex 2.0 metadata header
- Write
my_app.507exto the current directory
Execute the executable
Run the FZX2 will verify the content hash, install any declared dependencies from the
.507ex file locally:dependfile, and then execute the command from the runfile. For this example, you should see:Hash verification happens before execution. If the file has been modified since it was built,
fzx2 exec will refuse to run it.Upload to a CAR server (optional)
To share your executable, push it to a running CAR server. Start the server first if you’re hosting it yourself:Then upload the executable from another terminal:The server returns a URL and a one-time secret code:Share both the URL and the secret code with whoever needs to run the executable. Keep the secret code private — it is required to download the file.
What’s next
CLI reference
See all flags and options for every FZX2 command.
Format overview
Understand the 507ex 2.0 header structure in detail.
Dependfile reference
Full syntax for declaring dependencies and platform constraints.
CAR server
Run and configure your own CAR distribution server.