Installation
Installation is simple as one, two, three!
# npmnpm i -g astra-cli# yarnyarn global add astra-cli# pnpmpnpm add -g astra-cli
# for one project only# npmnpm i --save-dev astra-cli# yarnyarn add --dev astra-cli# pnpmpnpm add -D astra-cli
Check your installation
astra -v
’astra’ is not recognized as an internal or external command
- Type
npm bin -g
(oryarn bin
,pnpm bin
) to get the path where npm installs global packages, copy the path. - Click windows type
environment variables
and click onEdit the system environment variables
. - On left bottom click on
Environment Variables...
. - In the
User variables
section, selectPath
and clickEdit...
. - Click
New
and paste the path you copied from step 1. - Click
OK
on all the windows. - Restart your terminal.
- Done!