Skip to main content

CLI

Use the MightyMeld CLI to configure MightyMeld for your project and launch MightyMeld studio.

Installation

You can install the CLI globally using npm:

npm install -g mightymeld

Or run it via npx without installing first.

npx mightymeld

Upgrading from 0.1.x

With version 0.2.0, we changed our package name from @mightymeld/runtime to mightymeld. If you are upgrading from 0.1.x, you will need to uninstall the old package and install the new one.

npm uninstall @mightymeld/runtime

If you are using CRA or Vite 5+, the Babel or SWC plugin is no longer needed and you can remove it from your .babelrc or vite.config.js.

Commands

Use the MightyMeld CLI in the same directory as your package.json file.

npx mightymeld

Starts MightyMeld studio, guiding you through any necessary configuration steps beforehand.

options

Name
Description
--helpPrint all the commands and options available in the CLI.
--run <command>The given command (for example, npx run dev) will be used to launch your app before MightyMeld Studio launches, overriding the run value set in mightymeld.json.
--no-runLaunch only MightyMeld studio. When using this, your app should already be running.
--debugPrint out debuggin information while running.

npx mightymeld secrets

Authenticate and download mightymeld.secrets file for use in your application.

mightymeld tailwind

Updates your configuration as needed to support AI and autocomplete for Tailwind CSS.

npx mightymeld tutorial

Clone and run the MightyMeld tutorial.

npx mightymeld sample

Clone and run a MightyMeld sample project. You will be asked to choose which MightyMeld sample projects you would like to install.