npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

axel-cli

v0.35.1

Published

Axel-cli is the companion app to the [Axel framework](https://github.com/enyosolutions-team/axel-core).

Downloads

285

Readme

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

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

  • [x] Generate models, routes, controllers and api

  • [x] Init a project

  • [x] Generate models from the sequelize-auto template

  • [ ] Hook into sequelize cli commands

  • [x] use config from rc files to locate folders

  • [ ] Generate mongo controllers

  • [x] Generate bare controllers

  • [x] Generate bare controllers

  • [ ] Custom models folder

  • [ ] Better associations How to define relationships => https://docs.forestadmin.com/documentation/v/v6/reference-guide/relationships#lumber-relationship-generation-rules

  • [ ] use primary from config when generating models