A web-based game for learning terminal commands through interactive challenges in a simulated CLI environment. This is currently in beta - please submit a pull request if you find any bugs or have suggestions for improvements.
CLI Adventures is an educational game that helps users learn terminal commands through practical, hands-on scenarios. The game simulates a command-line interface in the browser, allowing users to practice essential commands like ls
, cd
, cat
, and more in a risk-free environment.
- Interactive terminal simulator with vintage aesthetic
- Step-by-step challenges to learn core CLI commands
- Virtual file system for exploration
- Command history and navigation (arrow keys)
- Responsive design for desktop and mobile
- Hint system for beginners
This version is configured for GitHub Pages deployment:
- Push this code to your GitHub repository
- Enable GitHub Pages in your repository settings
- Set the source to the main branch
- The game will be available at your GitHub Pages URL
Just upload all files to your web server - no server-side processing required.
For additional features or server-side processing:
- Install the required packages:
pip install -r requirements.txt
- Run the Flask app:
python app.py
- Access at http://localhost:5000
ls
- List directory contentscd [directory]
- Change directorycat [file]
- View file contentspwd
- Print working directorymkdir [directory]
- Create directorytouch [file]
- Create empty filerm [file]
- Remove filemv [src] [dst]
- Move/rename filecp [src] [dst]
- Copy fileunzip [file.zip]
- Extract zip fileclear
- Clear the terminalreset
- Reset the gamehelp
- Show available commands
The game includes several challenges designed to progressively teach CLI concepts:
- Navigation - Learn to move around directories
- File inspection - View file contents
- Hidden treasures - Find secret locations and complete the treasure hunt mission
- Frontend: HTML, CSS, JavaScript
- Backend: Pure JavaScript (GitHub Pages version) or Python with Flask (optional)
- Styling: Custom CSS with terminal aesthetics
MIT
Contributions are welcome! Please feel free to submit a Pull Request.