Skip to content

NPM scripts

Can be executed using npm run {script name}


Shorthand for build and generate:schema


Syncronise the database schema between Spacebar source code and your database. May incur data loss. You do not normally need to run this script, as Spacebar-server will perform it when necessary.


Builds the Spacebar source code


Starts the bundled server. API, Gateway, and CDN run under the same process when using bundle, using the same port.

start:api, start:gateway, start:cdn

Starts the respective component.


Generates a rights value for use as a default right. Also displays the 'all rights' value, which 1 is a placeholder for.


Recreates the spacebar-server/assets/schema.json file, which is used for API and Gateway request validation.