CLI
Last updated
npm install @ngxs/cli -g
# or if you use yarn
yarn global add @ngxs/clingxs ▓█▓▒▒▒▒▒▒▒▒▒▒██░ ▓█▒░░░░░░░░░░░░░ ░▒▒▒▒▒██░ ░██▒▒▒▒▒░ ░██▓▒▒▒▒▒▒▒▒▒▒▒▒░
░█░░██████████░░█ ░█░▒█████████████ ░█████░▒█ █▓░█████▒ ██ █████████████▓
░█ ▓█ █░░█ ░█ ▓▓ ░█░▒█ █▓░█░ ██ █░
░█ ▓█ █░░█ ░█ ▓▓ ░█░▒█░█▓░█░ ██ █░
░█ ▓█ █░░█ ░█ ▓▓ ░▓▓▓▓▓▓██ ░█░░▓▓▓░░█░ ▓█ ░▓▓▓▓▓▓▓▓▓███
░█ ▓█ █░░█ ░█ ▓▓ ░█████░░█ ░█░░███▒░█░ ▒████████████ █▒
░█ ▓█ █░░█ ░█ ▓▓ ░█░░█ ░█░▒█ █▓░█░ ▓█ █▓
░█ ▓█ █░░█ ░█ ▓▓ ░█░░█ ░█░▒█ █▓░█░ ▓█ █▓
░█ ▓█ █░░█ ░█░░█████████▓ ░█ ░████▓ ▓█ ██ ▓████▒ █████████████▒░█▒
░█ ▓█ █░░█ ░███████████████ ░██████▓ ▒██████▒ ███████████████░
NGXS CLI
$ ngxs --name name --spec boolean --directory path --folder-name name
$ ngxs --help
Options
--name name Store name
--directory path By default, the prompt is set to the current directory
--folder-name name Use your own folder name, default: state
--spec boolean Creates a spec file for store, default: true
Custom template generator
--plopfile path Path to the plopfile