cosmo CLI reference.
Every command and flag for the cosmo developer CLI, verified against packages/cli.
cosmo init
Scaffold a runnable project in the standard package skeleton every cosmonapse-example follows: config.py (settings), neurons/ (Axon modules), brain.py (the wiring), and demo.py - an entry that hosts BOTH sides, so python demo.py gives a full round-trip in one process (SYNAPSE_URL just swaps the transport). The README carries the 10-line worker.py to add when workers should become their own processes. Pass --namespace to choose the namespace and --force to write into a non-empty directory.
$ cosmo init my-app --namespace=demo Scaffolded my-app in /path/to/my-app + config.py + neurons/__init__.py + neurons/hello.py + brain.py + demo.py + README.md Next steps: cd my-app python demo.py # one process, in-process bus - no setup Same code over a real synapse: cosmo synapse start memory --namespace=demo SYNAPSE_URL=cosmo://127.0.0.1:7070 python demo.py
Have a feature in mind?
The protocol, SDKs, and CLI are still pre-1.0. If something here is missing, ambiguous, or wrong - open an issue and propose a change. Every breaking change is debated in DECISIONS.md first.