Before you install the
sensible cli, make sure you have brew, node, npm and npx. If you don't, this is how to install them:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install node
npm install -g sensible
This installs the
sensible command onto your system. We also add the shortcut
s, which does the same as
If you don't want it globally, just use
npx instead, that also works.
sensible init or
yarn create sensible-app bootstraps a new sensible project for you, with sensible defaults.
There are a couple of flags and arguments to alter the way it works. Everything is optional, and it is recommended to KISS, be sensible, and just live with the defaults:
nameas first argument (optional): name of your project
repoas second argument (optional): Where should your app be hosted? Provide an URL or a GitHub slug (either "org/repo" or "username/repo").
--debugturns on logging
--non-interactivewill ask some questions before bootstrapping
--offlinewill get everything from cache, no matter how long it's ago since you last ran sensible
--branch=stringwill change the default branch name
The Sensible setup script checks and installs everything to get the most out of sensible on your MacOS system.
Use this at your own risk! Check here for the source.
With this command you can easily add an app type to your project. Make sure you're in the root folder of your project.
sensible add [app type]
If you want to choose the apptype, just run
sensible add without apptype.