1.0.4 • Published 3 years ago
@cloudpremise/reactforce-cli v1.0.4
reactforce-cli
To execute from powershell on windows you need to alter the ExecutionPolicy (https:/go.microsoft.com/fwlink/?LinkID=135170)
Check the current policy (Powershell only)
$ Get-ExecutionPolicy
Change the execution policy
Open Powershell as an administrator
Choose the correct policy to apply, in this case "RemoteSigned"
$ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Now the script should be able to run from Powershell
$ greet
(Followed this blog article to figure this out: https://medium.com/jspoint/creating-cli-executable-global-npm-module-5ef734febe32)
Install (or Update) local directory (for testing from dev machine)
- from the reactforce-cli folder npm install -g ./
Uninstall local directory (to remove from dev machine testing)
- from the reactforce-cli folder npm uninstall -g reactforce-cli
Update the npm registry with latest version (authorized users only)
$ npm publish --access public
Install globally
$ npm install -g @cloudpremise/reactforce-cli
Uninstall globally
npm uninstall @cloudpremise/reactforce-cli -g
Commands
Initialize the current directory for reactforce
$ reactforce init