Mowbly Command line tool

Mowbly is available on the cloud as a browser-based IDE. For all the hackers addicted to the console, Mowbly offers a command line tool utility. The Mowbly Command line tool helps you develop all your Mowbly projects on your machine. The tool is shipped with the following functionalities,

creating projects without any internet connection,
developing in editors of your choice,
previewing your projects offline,
pushing projects to the cloud, and
pulling existing ones from the cloud.

Setting up

The first release is available as a downloadable zip from here – Mowbly Command line tool. After downloading, unzip the file contents to a folder of your choice. Follow the below steps to set up Mowbly Command line tool on your machine,

Windows users
Double click on launch.bat to launch the Mowbly command line tool.

Linux users
Add the following commands to the .bashrc file.which is presented inside /home//.bashrc

alias mowbly={path to mowbly.sh inside unzipped folder}

Mac users
Add the following to the .bash_profile file. which is presented inside /Users//.bash_profile

alias mowbly={path to mowbly.sh inside unzipped folder}

Note:

If you get the error “Permission denied” while calling mowbly in the terminal, set the execute permission for the file mowbly.sh using the chmod command.
If you get the error “Permission denied” while writing alias for mowbly in .bashrc or .bash_profile file, set the permission for the file .bashrc or .bash_profile using chmod command.

Using the tool

After setting up the tool, you can create a new project using

$ > mowbly create project -n MyAwesomeProject

To create a html template, use the below the command,

$ > mowbly create html -n home

You can create scripts, css, images and other resources in the folders created in the project directory and reference them in the HTML files.

You can start the server in another instance of the terminal and preview the HTML files individually by modifying the simulator URL.

$ > mowbly server start

Alternatively, to preview a html file on the Mowbly Mobile Simulator, use the below command (with the server running from another console instance),

$ > mowbly preview -n home

To create a pack, use the below command. After creating the pack configuration has to be edited to have the linked files available in the pack.

$ > mowbly create pack -n FirstPack

To push the created project from your machine to your Mowbly account on the cloud, use the below command from the tool

$ > mowbly push -n MyAwesomeProject

Note: User credentials are necessary for the above action. You will be prompted for user credentials if it is the first time the a push or pull action is done or the logout action has been done previously.

Similarly you can pull your existing projects from your Mowbly account on the cloud to your machine using the below command,

$ > mowbly pull -n AnotherAwesomeProject

To view the pack on your device using the Mowbly client installed on your device, the required files need to be packed in the cloud. To send the pack configuration to the cloud and create a pack for the user, use the below command

$ > mowbly pack -n FirstPack

Note: The pack command pushes all the required files to the cloud implicitly before packing, so you need not call push before calling pack command

To logout from the current user context, use the below command

$ > mowbly logout

The command line tool version details can be seen using the below command

$ > mowbly version

Get started with the Mowbly command line tool to build awesome cross-platform mobile apps from your machine. Please mail your feedback to support[@]cloudpact.com. Happy coding!

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *