Options
Global flags
- --env-file- Specify a different location of the .envfile. Defaults to the location of the executable
 
- Specify a different location of the 
- --quiet- Only log output with a level of warningor above
 
- Only log output with a level of 
- --verbose- Log all ouput, including the most verbose messages
 
Subcommands
check:health
Check the health of the application and the configuration. Useful when configuring or updating the application.
Flags
–
migrate:db
Perform database migrations. This will be needed during the initial setup, as well as during future updates.
Flags
- --reset- Revert any previously done database migrations before applying the migrations. WARNING: This will delete any existing data in affected database tables.
 
remote:setup
Set up or update necessary config in Contentstack. This command is idempotent, so running it multiple times will not break anything.
Flags
- --reset- Revert any previously done database migrations before applying the migrations. WARNING: This will delete any existing data in affected database tables.
 
remote:sync
Synchronise all Contentstack entries into the database. By default, this will be incremental, meaning that every synchronisation action will continue where the last one left off.
Flags
- --reset- Synchronise all data, instead of starting from the last sync token
 
server
Run a webserver with a REST API. More information about the webserver can be found on the API Server page.
Flags
- --port- The port to run the server on. Defaults to 4000
 
- The port to run the server on. Defaults to 
create:content-type
Create a new content type, with some standard fields.
Flags
- --name- The title of the content type to create
 
- --machine-name- The machine name of the content type to create
 
- --dry-run- Log the actions instead of actually running them