Back to topic list

Cli

Enduro.js is meant to be used from the command line. If you are not sure how to use it, just type enduro --help. Shout out to yargs for the command line parser

$ enduro - will start enduro in development mode.

$ enduro start - will start enduro in production mode.

$ enduro -r - norefresh tag. Same as just enduro but will not open the browser for the first time. This is useful

$ enduro addadmin <username> <password> - will add admin user to the admin interface.

Running enduro

$ enduro - will start enduro in development mode

$ enduro start - will start enduro in production mode

Creating projects

$ enduro create <projectname> - will create new folder projectname and put the default scaffolding in there

Securing project

$ enduro secure <passphrase> - will create a simple security check for all pages. You know, some clients don't like when their half-built website is live and public for everyone to see.

Building a project

$ enduro render - will build sass and requirejs

Adding cultures

$ enduro culture add en - Adds one culture. Check out babel for more info Babel

$ enduro culture add en de fr - Adds multiple cultures in one conenient call.

Juicebox

Juicebox serves as content versioning/migrating/backup tool. Juicebar is the remote server where the backup files are stored.

$ enduro juice pull - will download the freshest version of all content files, but will not replace newer local files

$ enduro juice pull -f - will download the freshest version of all content files and will replace the local files

$ enduro juice pack - will send localfiles to juicebar, but will preserve any newer files from juicebar

$ enduro juice pack -f - will just take local files and put them on juicebox, disregarding any newer file on juicebar

$ enduro juice diff - will compare current local content with the remote juicebox content

$ enduro juice diff <version_hash> - will compare current local content with the specified version

$ enduro juice diff <version_hash> <file> - will compare local current file with same file in the specified version

$ enduro juice log - displays history of edits to the content

Upload

$ enduro upload <image_url> - downloads image and uploads it to s3.

Setup

enduro setup <command> is used to ease some of the configuration. If not sure which commands are supported, just run enduro setup --help.

$ enduro setup s3 - will enable aws s3 as filesystem $ enduro setup juicebox - will turn on/off juicebox

Back to topic list

Shout out to pexels and freepik