Azure / static-web-apps-cli

Azure Static Web Apps CLI ✨
https://aka.ms/swa/cli-local-development
MIT License
597 stars 117 forks source link

offline installation of swa cli will work ? #706

Closed vivuu1989 closed 3 months ago

vivuu1989 commented 1 year ago

we dont have direct connectivity to nodejs.org site from our Build agent linux machine and only Jfrog proxy repo for npm packages we are using.

We configured the jfrog settings on the repo to connect our build machine. But the "npm install -g @azure/static-web-apps-cli" is not working.

Is there any offline installation method for swacli ?

Our requirement is to run Azuredevops server pipeline to deploy the webapps. But we couldn't find the staticwebapp task in azuredevops server and also the swa cli offline installation of getting failed is failing.

cjk7989 commented 1 year ago

Hi @vivuu1989, could you download swa-cli manually (clone this repo) and copy it to your agent linux machine? Then you can use "npm link ./" in the local path of swa-cli to use it globally. See developer.md.

adrianhall commented 3 months ago

Per the comment, you can set it up