0.35.1 • Published 12 months ago

axel-cli v0.35.1

Weekly downloads
4
License
MIT
Repository
github
Last release
12 months ago

axel-cli

Axel-cli is the companion app to the Axel framework.

You can install it with yarn or npm

npm install -g axel-cli
#OR
yarn global add axel-cli

npm.io Version Downloads/week License

Usage

$ npm install -g axel-cli
$ axel COMMAND
running command...
$ axel (-v|--version|version)
axel-cli/0.35.0 darwin-x64 node-v14.21.2
$ axel --help [COMMAND]
USAGE
  $ axel COMMAND
...

Commands

axel admin:eject

Generate sequelize models and json schemas from database

Generate sequelize models and json schemas from database

USAGE
  $ axel admin:eject

OPTIONS
  -f, --force      Overwrite admin if present before recreating them (Do not use in production...)
  -h, --help       show CLI help
  -n, --name=name  Name to use for the admin panel folder

See code: src/commands/admin/eject.ts

axel db:import

Generate sequelize models and json schemas from database

Generate sequelize models and json schemas from database

USAGE
  $ axel db:import

OPTIONS
  -f, --force          Overwrite models if present before recreating them (Do not use in production...)
  -h, --help           show CLI help
  -s, --schemas        Also generate schemas
  -t, --tables=tables  list of tables to import

See code: src/commands/db/import.ts

axel db:sync

Sync sequelize models to the database

Sync sequelize models to the database

USAGE
  $ axel db:sync

OPTIONS
  -a, --alter          Alter table columns if they already exist.
  -f, --force          Drop tables before recreating them (Do not use in production...
  -h, --help           show CLI help
  -m, --match=match    name of database to match (ex: _test)
  -s, --silent         Do not ask for confirmation
  -t, --tables=tables  name of table to sync (ex: user)

See code: src/commands/db/sync.ts

axel generate TARGET

Generate various documents for your axel project

Generate various documents for your axel project

USAGE
  $ axel generate TARGET

OPTIONS
  -f, --force
  -h, --help   show CLI help
  -t, --type=  [default: sql] type of project

See code: src/commands/generate.ts

axel generate:api NAME

Generate an api for your axel project

Generate an api for your axel project

USAGE
  $ axel generate:api NAME

OPTIONS
  -h, --help            show CLI help
  -i, --interactive
  -t, --type=sql|mongo  [default: sql] type of database
  --fields=fields       List of fields to declare in the model
  --force               Whether to generate schema model also when generating an sql model
  --with-schema         Whether to generate schema model also when generating an sql model

See code: src/commands/generate/api.ts

axel generate:controller NAME

Generate a controller for your axel project

Generate a controller for your axel project

USAGE
  $ axel generate:controller NAME

OPTIONS
  -f, --force
  -h, --help                 show CLI help
  -t, --type=sql|mongo|bare  (required) type of project

See code: src/commands/generate/controller.ts

axel generate:hook NAME

Generate an api hook for your axel project

Generate an api hook for your axel project

USAGE
  $ axel generate:hook NAME

OPTIONS
  -f, --force
  -h, --help   show CLI help

See code: src/commands/generate/hook.ts

axel generate:model NAME

Generate a model for your axel project

Generate a model for your axel project

USAGE
  $ axel generate:model NAME

OPTIONS
  -f, --force
  -h, --help                  show CLI help
  -i, --interactive
  -t, --types=sql|schema|all  (required) type of project
  --fields=fields             List of fields to declare
  --from-sequelize            Generate the schema from the sequelize model

See code: src/commands/generate/model.ts

axel generate:route NAME

Generate an api for your axel project

Generate an api for your axel project

USAGE
  $ axel generate:route NAME

OPTIONS
  -h, --help           show CLI help
  -s, --secure=secure  Add secure policies to the app

See code: src/commands/generate/route.ts

axel generate:test NAME

Generate an api test for your axel project

Generate an api test for your axel project

USAGE
  $ axel generate:test NAME

OPTIONS
  -f, --force
  -h, --help            show CLI help
  -t, --type=bare|full  (required) type of test

See code: src/commands/generate/test.ts

axel help [COMMAND]

display help for axel

display help for <%= config.bin %>

USAGE
  $ axel help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

axel init [NAME]

describe the command here

describe the command here

USAGE
  $ axel init [NAME]

OPTIONS
  -h, --help  show CLI help

See code: src/commands/init.ts

axel new [NAME]

Create a new axel project.

Create a new axel project.
  - Download the zip of project
  - Unzip it,
  - install peer dependencies,
  - Place relevant crud controller, auth controller, and Authservices according to the database system.
  

USAGE
  $ axel new [NAME]

OPTIONS
  -h, --help              show CLI help
  -n, --type=mongodb|sql  name to print
  -s, --silent            Silent

DESCRIPTION
  - Download the zip of project
     - Unzip it,
     - install peer dependencies,
     - Place relevant crud controller, auth controller, and Authservices according to the database system.

See code: src/commands/new.ts

Features / Todo

0.34.0

12 months ago

0.35.1

12 months ago

0.35.0

12 months ago

0.32.25

1 year ago

0.33.0

1 year ago

0.32.24

1 year ago

0.32.23

1 year ago

0.32.22

1 year ago

0.32.20

1 year ago

0.32.8

1 year ago

0.19.0

1 year ago

0.32.7

1 year ago

0.19.1

1 year ago

0.32.6

1 year ago

0.32.5

1 year ago

0.32.4

1 year ago

0.32.3

1 year ago

0.32.21

1 year ago

0.32.9

1 year ago

0.32.19

1 year ago

0.32.18

1 year ago

0.32.17

1 year ago

0.32.16

1 year ago

0.32.15

1 year ago

0.32.14

1 year ago

0.32.13

1 year ago

0.32.12

1 year ago

0.18.0

1 year ago

0.17.0

1 year ago

0.11.1

2 years ago

0.11.0

2 years ago

0.7.0

2 years ago

0.10.1

2 years ago

0.10.0

2 years ago

0.8.0

2 years ago

0.6.4

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.3.15

2 years ago

0.3.14

2 years ago

0.3.13

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.4.0

2 years ago

0.6.1

2 years ago

0.5.2

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.3.12

3 years ago

0.3.11

3 years ago

0.3.10

3 years ago

0.3.6

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.10

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago

0.1.1

4 years ago

0.0.17

4 years ago

0.0.18

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago