core.io-cli

0.5.0 • Public • Published

core.io CLI

This is the core.io CLI tool belt, providing a series of utilities to speed development.

Installation

Run the following command:

$ npm i -g core.io-cli

This will expose the core command in your terminal:

$ core

It is also aliased to cr.

Commands

If you run the help command you will see a list of the available commands:

   core 0.0.3 - core.io CLI toolbelt manager

   USAGE

     core <command> [options]

   COMMANDS

     shuttle install                         Install all dependencies
     shuttle list                            List all local domains
     shuttle open <domain>                   Open domain in default browser
     shuttle share <project>                 Generate a shareable URL for a project
     shuttle restart                         Restart Caddy and Dnsmasq services
     shuttle stop                            Stop Caddy and Dnsmasq services
     shuttle start                           Start Caddy and Dnsmasq services
     shuttle serve <domain> <proxy>          Proxy a local domain and save it for quick access
     shuttle update                          Update toolchain
     generator add <source> [alias]          Add a project template from github or a local directory
     generator list                          List available templates
     generator new <template> [output]       Create a new project from a project template
     generator link <source> [alias]         Link local template for development
     schema collect [source] [output]        Collect metadata from waterline models and generates a JSON schema file
     schema generate [source] [output]       Generate schema from model data
     scaffold compile [source] [output]      Generate views from a GUI schema
     scaffold open [source] [output]         Generate views from a JSON schema
     run [application] [environment]         Run a core.io application
     repl                                    Open REPL window
     help <command>                          Display help for a specific command

   GLOBAL OPTIONS

     -h, --help         Display help
     -V, --version      Display version
     --no-color         Disable colors
     --quiet            Quiet mode - only displays warn and error messages
     -v, --verbose      Verbose mode - will also output debug messages

Utilities

All the exposed utilities are available as stand alone CLI tools. This is just a convinient wrapper that uses those tools to expedite development of core.io applications.

Shuttle

With shuttle you can create local environments for development on macOS computers.

It uses Caddy and Dnsmasq to provide a reverse proxy for your local webservers. You can also create a local tunnel which you can share to access your local server remotely- it uses ngrok under the hood.

You need to have Homebrew installed, as it uses brew to install some dependencies.

Generator

Create new projects of any type using templates. A template is usually stored as a github repository and provides everything you need to create a new project and get started quickly.

Check out the core.io starter template or a node template, you can get an idea of how to create your own templates.

Schema

If you application uses [persistence][core.io-persistence] and has models that expose an schema property, then you can use this utility to generate a schema.json file that can be used as input for scaffolding CRUD views.

Scaffold

Using this command and a valid gui-schema file, generated by the schema command you can generate CRUD views.

REPL

core.io applications can expose a REPL that can be accessed with this command.

Run

License

® License MIT 2017 by goliatone

Readme

Keywords

none

Package Sidebar

Install

npm i core.io-cli

Weekly Downloads

11

Version

0.5.0

License

MIT

Unpacked Size

13.2 kB

Total Files

14

Last publish

Collaborators

  • goliatone