Command Line Tools
wheels generate snippets
wheels generate snippets
Section titled “wheels generate snippets”Copies template snippets to your application.
Synopsis
Section titled “Synopsis”wheels generate snippetswheels g snippetsDescription
Section titled “Description”The wheels generate snippets command copies snippet templates to your application’s /app/snippets folder. This provides you with a collection of code snippet templates that you can use and customize for common Wheels patterns.
Arguments
Section titled “Arguments”None.
Options
Section titled “Options”None.
Generate Snippets
Section titled “Generate Snippets”wheels generate snippetsOutput:
Starting snippet generation...Snippet successfully generated in the /app/snippets folder.This command:
- Validates that the
appdirectory exists in your current location - Ensures snippet templates are copied to
/app/snippets - Confirms successful generation
Requirements
Section titled “Requirements”- Must be run from your application root directory (where the
appfolder is located)
Error Handling
Section titled “Error Handling”If the command cannot find the app directory, it will display an error:
[/path/to/app] can't be found. Are you running this command from your application root?See Also
Section titled “See Also”- wheels generate controller - Generate controllers
- wheels generate model - Generate models
- wheels scaffold - Generate complete resources