All docs

Command line

Last updated 29 October 2026 · 1 minute read

Eventfox ships a small command line tool. Run it inside the container with docker compose exec eventfox node dist/cli.mjs followed by a command.

Running a command

From the folder with your docker-compose.yml:

docker compose exec eventfox node dist/cli.mjs list-projects

Commands

CommandWhat it does
migrateApplies database changes. This also happens when Eventfox starts.
create-project --name <n> --domain <host[,host...]> [--mode standard|privacy] [--allow-localhost]Creates a project and prints its ID and public key.
set-domains --project <id> --domain a.com,b.com [--allow-localhost true|false]Replaces a project's allowed domains. A running server picks the change up within 60 seconds.
list-projectsPrints each project's name, mode, ID and active public key.
reset-password --email <e>Prints a new temporary password for that person.
delete-visitor --project <id> --visitor-id <id>Deletes every event for one visitor in a project and prints how many.
demo:seed --name <n> --mode standard|privacy [--visitors 3000] [--days 60] [--seed 1]Creates a project full of made-up demo data.
demo:wipe --project <id>Deletes a demo project. It refuses any project that isn't a demo.
licence:statusShows the installed licence.
licence:installInstalls a licence. Paste the text when asked; it stays hidden and a * shows for each character.
licence:removeRemoves the installed licence.

New projects follow the plan's project limit. Details of each command's output are in --help.