wheels init
Bootstrap an existing Wheels application for CLI usage.
Synopsis
Description
The wheels init
command initializes an existing Wheels application to work with the Wheels CLI. It sets up the necessary configuration files and creates a .wheels-cli.json
file in your project root.
Arguments
name
Name of the application
Current directory name
directory
The directory to initialize
.
(current directory)
reload
Reload password for the application
wheels
version
Wheels version to use
Latest stable
createFolders
Create Wheels directory structure
true
Options
--help
Show help information
Examples
Initialize current directory
Initialize with custom name
Initialize specific directory
Initialize with custom reload password
Initialize without creating folders
What It Does
Creates
.wheels-cli.json
configuration fileSets up application name and version
Configures reload password
Optionally creates standard Wheels directory structure:
/config
/controllers
/models
/views
/tests
/plugins
Configuration File
The generated .wheels-cli.json
contains:
Notes
Run this command in the root directory of your Wheels application
The reload password is used for the
wheels reload
commandIf folders already exist, they won't be overwritten
See Also
Last updated
Was this helpful?