Supra CLI provides a set of commands to help you manage your Supranim projects efficiently. With Supra, you can easily create new projects from starter kits, execute database migrations and more. This is pretty much the first version of the CLI, and I'm planning to add more features and commands in the future, so stay tuned for updates!
🔗Installation
Usually, Supra CLI is automatically installed when you install Supranim for the first time. However, if you need to install it, you can always do it using Nimble:
nimble install supraOr, directly from GitHub using the following command:
nimble install https://github.com/supranim/supra🔗Available Commands
Here are some of the available commands in Supra CLI. Type supra -h to see the full list of commands and options:
CLI tool for bootstrapping Supranim applications
(c) Supranim | MIT License
Build Version: 0.1.0
Development
init <project:string> Create a new Supranim application
--nocache:bool
Database Management
db.show Show database information and table sizes
db.table <name:string> Show column information for a specific table
db.monitor Monitor active database connections in real-time
db.migrate Run pending migrations
db.rollback Rollback to the previous migration batch
--step:int
Asset Bundling
bundle.assets <dir:string> <output:string> Bundle static assets into the application🔗The asset bundler
This is a simple command that takes a directory of static assets (like CSS, JS, images) and bundles them into your Supranim application as a virtual file system. This allows you to serve static files directly from your application.
🤯 This feature is used inside the Booyaka Documentation Generator to bundle the necessary CSS, JS, SVG icons and other assets for the documentation website.