Sendama CLI is a console application that provides a command line interface for the Sendama 2D Game Engine. It is used to create, build, run and manage Sendama projects.
For the current editor manual, see Editor.md.
For the modular guide set, see docs/guides/README.md.
- PHP 8.3 or newer
- WSL (For Windows)
- Composer 2.7.1 or later
- Sendama 2D Game Engine
To install Sendama CLI, run the following command in your terminal:
composer global require sendamaphp/consoleIf you haven't already, add Composer's system-wide vendor bin directory to your $PATH. This directory is at ~/.composer/vendor/bin or ~/.config/composer/vendor/bin.
export PATH="$PATH:$HOME/.composer/vendor/bin"Alternatively, you can link the sendama executable to a directory that is already in your $PATH. For example, you can link it to /usr/local/bin:
sudo ln -s ~/.composer/vendor/bin/sendama /usr/local/bin/sendamaor
sudo ln -s ~/.config/composer/vendor/bin/sendama /usr/local/bin/sendamaThen, you can run the sendama command in your terminal.
sendama --helpFrom the WSL terminal follow Linux instructions
From the OSX terminal follow Linux instructions
sendama [command] [options] [arguments]--helpor-hdisplays help for the command--quietor-qsuppresses output--verboseor-v|vv|vvvincreases output verbosity--versionor-Vdisplays the application version--ansior-aforces ANSI output--no-ansior-Adisables ANSI output--no-interactionor-ndisables interaction
Dump shell completion code for the specified shell (bash, fish, zsh, or PowerShell).
sendama completionDisplays help for a command
sendama helpLists commands
sendama listCreate a new Sendama project
sendama new:game mygameor
sendama new mygamenameis the name of the projectdirectoryis the path to the project directory
sendama generate:scene myscenesendama generate:prefab enemysendama generate:prefab score-label --kind=labelsendama generate:texture mytexturesendama generate:texture mytexture --width=32 --height=32
