NgOP CLI
You can access NgOP CLI by running npx ngop command within the folder where you installed NgOP.
init
Initialises everything needed to work with NgOP for a given Angular project.
npx ngop init [OPTIONS]
Options:
--root=<<path>>- relative path to your angular project (where angular.json can be found). Use it in case you run command outside of the repository.--verbose- use it to see debuging logs--force- use it override existing NgOP development project--project=<<angular_project>>- name of the angular project you want initialise. If not given, project set as the default one will be used.
run
Starts server that delivers dev app and stubs to your application's REST calls.
npx ngop run [OPTIONS]
Options:
--port=<<number>>REQUIRED - port on which dev app should run by localhost.--root=<<path>>- relative path to your angular project (where angular.json can be found). Use it in case you run command outside of the repository.--verbose- use it to see debuging logs