The CLI was created to make dev's life easier by giving them a set of tools to automate some parts of the development process.
Installing Typetron's CLI is easy enough, as you would already expect:
$ npm install -g typetron
This will create a global command called, well,
This command line tool has a few sub-commands that you can use. Here is a list of them:
$ typetron new MyProject
As you are already used to in CLIs, the
new command creates a new Typetron project with a basic scaffolding and installs its dependecies.
$ typetron routes
Tis command will print out all the routes in your Typetron project together with some information about them. It comes in handy when you have a lot of them in a big project.
$ typetron migrate Migrating... Migrating 'CreateUsersTable' Migrated 'CreateUsersTable' $ typetron migrate:rollback Rolling back... Rolling back the 'CreateUsersTable' migration. Reverted 'CreateUsersTable' migration. $ typetron migrate:reset Resetting database...
These commands are used to manage your Typetron app migrations