~/redwood-app$ yarn redwood dev -fwd= "-port=1234 -open=false" The following will run the dev server, set the port to 1234, and disable automatic browser opening. $ /redwood-app/node_modules/.bin/dev-serverġ5:04:51 api | Listening on 15:04:51 api | Watching /home/dominic/projects/redwood/redwood-app/apiġ5:04:51 api | ► Using -forward (alias -fwd), you can pass one or more Webpack Dev Server config options. $ /redwood-app/node_modules/.bin/redwood dev api If you're only working on your sdl and services, you can run just the api server to get GraphQL Playground on port 8911: ~/redwood-app$ yarn redwood dev api See the Redwood Webpack Doc for more details and examples. String of one or more Webpack Dev Server config options. Yarn redwood dev api starts the Redwood dev server and yarn redwood dev web starts the Webpack dev server with Redwood's config. Start development servers for api and web. If an error occurs during script execution, any remaining scripts are skipped and console output will let you know the error and how many subsequent scripts were skipped. Compares the list of files in api/db/dataMigrations to the records in the DataMigration table in the database and executes any files not present. Creates api/db/dataMigrations directory to contain data migration scriptsĮxecutes outstanding data migrations against the database.
yarn redwood checkĮxample ~/redwood-app$ yarn redwood check Get structural diagnostics for a Redwood project (experimental). $ /redwood-app/node_modules/.bin/redwood buildįiles are output to each side's dist directory: ├── api Running yarn redwood build without any arguments generates the Prisma client and builds both sides of your project: ~/redwood-app$ yarn redwood build Use Webpack Bundle Analyzer to visualize the size of Webpack output files via an interactive zoomable treemap api/dist and Webpack to package the web side into. We use Babel to transpile the api side into. operator indicates that the argument accepts an array of values. You'll also sometimes see arguments with trailing. Here and are strings and -option is a boolean. We use yargs and borrow its syntax here: yarn redwood generate page -optionĮvery argument and option has a type.
For redwood-tools, see Contributing in the Redwood repo. This document covers the redwood command. redwood-tools (alias rwt), which is for contributing to the framework.redwood (alias rw), which is for developing an application, and.The Redwood CLI has two entry-point commands: You can get a glimpse of all the commands by scrolling the aside to the right. The following is a comprehensive reference of the Redwood CLI. Creating a Background Worker with Exec and Faktory.Project Configuration: Dev, Test, Build.