xc-cli
v0.3.2
Published
CLI to create instant REST/GraphQL APIs for any database
Downloads
18
Readme
One command to generate REST APIs and GraphQL APis for any database with code
Setup and Usage
npm install -g xc-cli
Usage: xc [options]
Options:
open Opens xgenecloud Desktop App
gen.new.rest Creates a new project and generates code for a DB URL
gen.apis Generates REST APIs for db URLs
gen.apis.rest Generates REST APIs for db URLs
gen.apis.graphql Generates GraphQL APIs for db URLs
gen.component Generates a Component
gen.rest.module Generates a Module
gen.rest.module.router Generates a Router
gen.rest.module.middleware Generates a Middleware
gen.rest.module.service Generates a Service
gen.component Generates a Component
gen.gql.module Generates a Module
gen.gql.module.resolver Generates a Resolver
gen.gql.module.middleware Generates a Resolver
gen.gql.module.service Generates a Resolver
gen.gql.type Generates a GraphQL type class
gen.gql.schema Generates Schema
db.migrate.init
db.migrate.up
db.migrate.down
db.migrate.sync
db.migrate.list
db.migrate.clean
add.env add an environment
add.db add a database to environment
help output usage information