Starting a New CFWheels Project with the CLI

March 24, 2022

Posted in CLI, Tutorials

Posted By: Peter Amiri

Tags: cli, tutorial

<!-- wp:image {"id":865,"sizeSlug":"full","linkDestination":"media"} --> <figure class="wp-block-image size-full"><a href="https://cfwheels.org/blog/wp-content/uploads/2022/03/wheels-generate-app-larger.gif"><img src="https://cfwheels.org/blog/wp-content/uploads/2022/03/wheels-generate-app-larger.gif" alt="" class="wp-image-865"/></a></figure> <!-- /wp:image --> <!-- wp:paragraph --> <p>If you're not using CommandBox for your CFWheels development, you're in for a treat. This is a quick post to show case how easy it is to start a new CFWheels project with the help of the the <code>wheels</code> command for CommandBox. </p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p>If you have CommandBox installed and have the <code>cfwheels-cli</code> module installed, then simply launch CommandBox by typing <code>box</code> and then issue the command <code>wheels generate app myApp</code> . This simple command will take care of the following:</p> <!-- /wp:paragraph --> <!-- wp:list --> <ul><li>Create a folder in the current working directory for the project and name if <strong>myApp</strong></li><li>Copy the <code>cfwheels-template-base</code> package from ForgeBox and expand it in the root of the myApp folder</li><li>Copy the <code>cfwheels-core</code> package from ForgeBox and expand it into the wheels folder in the root of the myApp folder</li><li>This command also takes care of naming your app <strong>myApp</strong> or whatever name you pass in</li></ul> <!-- /wp:list --> <!-- wp:paragraph --> <p>You may be asking yourself, what are all these packages you're talking about? Well, we are starting to use the package management system provided by ForgeBox and CommandBox to make distribution of sample apps easier as well as installing and updating projects based on CFWheels. More to come on these topics later but this is just to whet your appetite. </p> <!-- /wp:paragraph -->

Latest Blog Posts