{"_id":"@at0lttr/static-web-apps-cli","name":"@at0lttr/static-web-apps-cli","dist-tags":{"latest":"1.1.6"},"versions":{"1.1.6":{"name":"@at0lttr/static-web-apps-cli","version":"1.1.6","description":"Azure Static Web Apps CLI","scripts":{"test":"jest --detectOpenHandles --silent --verbose","e2e:start:static":"npm run build && node ./dist/cli/bin.js --config ./cypress/fixtures/static/swa-cli.config.json start static","e2e:start:blazor":"npm run build && node ./dist/cli/bin.js --config ./cypress/fixtures/blazor-starter/swa-cli.config.json start blazor-starter","e2e:static":"start-server-and-test e2e:start:static http://0.0.0.0:1234 cy:run","e2e:blazor":"start-server-and-test e2e:start:blazor http://0.0.0.0:1234 cy:run","e2e:detection:prepare-samples":"rimraf -fr e2e/samples && npx -y degit sinedied/frameworks-playground#samples e2e/samples","e2e:detection:run":"node e2e/detect.js e2e/samples 2","e2e:detection:test":"jest --config e2e/jest.config.js","cy:run":"cypress run","cy:open":"cypress open","build":"tsc","prebuild":"rimraf -fr dist","postbuild":"npm run copy-assets","watch":"tsc --watch","copy-assets":"node ./scripts/copy-assets.js","prepare":"npm run build","format":"prettier --write 'src/**/*.ts' *.md'' 'docs/**/*.md' 'scripts/**/*.js' 'cypress/**/*.js' 'schema/**/*.json'","release:check":"semantic-release --dry-run","release:changelog":"CI=1 semantic-release"},"bin":{"swa":"dist/cli/bin.js"},"author":{"name":"Microsoft Corporation"},"dependencies":{"@azure/arm-appservice":"^12.0.0","@azure/arm-resources":"^5.0.1","@azure/arm-subscriptions":"^5.0.0","@azure/identity":"^3.1.2","@azure/msal-common":"^6.2.0","adm-zip":"^0.5.10","ajv":"^8.11.0","ajv-draft-04":"^1.0.0","chalk":"^4.1.2","cli-progress":"^3.10.0","commander":"^9.2.0","concurrently":"^7.1.0","cookie":"^0.5.0","devcert":"^1.2.0","dotenv":"^16.0.0","finalhandler":"^1.2.0","get-port":"^5.1.1","globrex":"^0.1.2","http-proxy":"^1.18.1","internal-ip":"^6.2.0","json-source-map":"^0.6.1","keytar":"^7.9.0","node-fetch":"^2.6.7","open":"^8.4.0","ora":"^5.4.1","pem":"^1.14.6","prompts":"^2.4.2","rimraf":"^3.0.2","selfsigned":"^2.0.1","serve-static":"^1.15.0","update-notifier":"^5.1.0","wait-on":"^6.0.1","yaml":"^2.0.1"},"devDependencies":{"@commitlint/cli":"^16.2.3","@commitlint/config-angular":"^16.2.3","@semantic-release/changelog":"^6.0.1","@semantic-release/commit-analyzer":"^9.0.2","@semantic-release/release-notes-generator":"^10.0.3","@types/adm-zip":"^0.5.0","@types/cli-progress":"^3.9.2","@types/cookie":"^0.5.1","@types/finalhandler":"^1.1.1","@types/globalyzer":"^0.1.1","@types/globrex":"^0.1.2","@types/http-proxy":"^1.17.8","@types/jest":"^27.4.1","@types/mock-fs":"^4.13.1","@types/node":"^14.18.16","@types/node-fetch":"^2.6.1","@types/prompts":"^2.0.14","@types/serve-static":"^1.13.10","@types/shelljs":"^0.8.11","@types/update-notifier":"^5.1.0","@types/wait-on":"^5.3.1","@types/which":"^2.0.1","all-contributors-cli":"^6.20.0","cypress":"^9.6.0","husky":"^4.3.8","jest":"^27.2.5","jest-extended":"^2.0.0","lint-staged":"^12.4.1","mock-fs":"^5.1.2","prettier":"2.6.2","semantic-release":"^19.0.2","start-server-and-test":"^1.14.0","supertest":"^6.2.3","ts-jest":"^27.0.0","typescript":"^4.2.4"},"homepage":"https://github.com/azure/static-web-apps-cli#readme","private":false,"keywords":["azure","cloud","serverless","hosting","static","auth","authentication","staticwebapp","jamstack","webapp","deploy","javascript","nodejs","dotnet","python"],"bugs":{"url":"https://github.com/azure/static-web-apps-cli/issues"},"repository":{"type":"git","url":"git+https://github.com/azure/static-web-apps-cli.git"},"license":"MIT","husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"npm test"}},"lint-staged":{"*.{ts,js,json,md}":["prettier --write","git add"]},"engines":{"node":">=14.0.0","npm":">=6.0.0"},"release":{"branches":"main","plugins":[["@semantic-release/commit-analyzer",{"releaseRules":[{"type":"docs","release":"patch"}]}],"@semantic-release/release-notes-generator","@semantic-release/changelog"]},"_id":"@at0lttr/static-web-apps-cli@1.1.6","_nodeVersion":"21.6.2","_npmVersion":"10.4.0","dist":{"integrity":"sha512-2HvqXOGCakkUMKlLX76OHscHj+Gow8ak0gZ+K8ygS/b4VEG4DzzBjJ+/i4QcLzDqzXJWMGnN34/uFkXzLkUXPA==","shasum":"cfabae0d8bc1a946e41e8a83c30c365e7846291d","tarball":"https://registry.npmjs.org/@at0lttr/static-web-apps-cli/-/static-web-apps-cli-1.1.6.tgz","fileCount":330,"unpackedSize":827811,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVtz1Ck/csLJn5I/rfHiUTrEQlW/0xEvTCPDvQW4v+ywIhAPTaaBqmNoKqHtqwA9qwIk2M5zDbaa3KZ4DWInQe/Xs8"}]},"_npmUser":{"name":"at0lttr","email":"lukas.ettenauer@festo.com"},"directories":{},"maintainers":[{"name":"at0lttr","email":"lukas.ettenauer@festo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/static-web-apps-cli_1.1.6_1709564725487_0.7457759836394113"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-04T15:05:25.364Z","1.1.6":"2024-03-04T15:05:25.660Z","modified":"2024-03-04T15:05:26.170Z"},"maintainers":[{"name":"at0lttr","email":"lukas.ettenauer@festo.com"}],"description":"Azure Static Web Apps CLI","homepage":"https://github.com/azure/static-web-apps-cli#readme","keywords":["azure","cloud","serverless","hosting","static","auth","authentication","staticwebapp","jamstack","webapp","deploy","javascript","nodejs","dotnet","python"],"repository":{"type":"git","url":"git+https://github.com/azure/static-web-apps-cli.git"},"author":{"name":"Microsoft Corporation"},"bugs":{"url":"https://github.com/azure/static-web-apps-cli/issues"},"license":"MIT","readme":"<p align=\"center\">\n  <h2 align=\"center\">Azure Static Web Apps CLI</h2>\n  <h2 align=\"center\">\n    <a href=\"https://www.npmjs.com/package/@azure/static-web-apps-cli\">\n      <img src=\"https://img.shields.io/npm/v/@azure/static-web-apps-cli.svg\" alt=\"NPM version\">\n    </a>\n    <img src=\"https://img.shields.io/node/v/@azure/static-web-apps-cli.svg\" alt=\"Node version\">\n    <a href=\"https://github.com/Azure/static-web-apps-cli/actions/workflows/ci.yml\">\n      <img src=\"https://github.com/azure/static-web-apps-cli/workflows/CI/badge.svg\" alt=\"CI status\">\n    </a>\n    <a href=\"https://github.com/azure/static-web-apps-cli/issues\">\n      <img src=\"https://img.shields.io/badge/contributions-welcome-brightgreen.svg\" alt=\"Contributions welcome\">\n    </a>\n  </h2>\n</p>\n<p align=\"center\">\n  <img align=\"center\" src=\"docs/swa-cli-logo.svg\" width=\"300\" alt=\"logo\">\n</p>\n\nThe Static Web Apps CLI, also known as SWA CLI, serves as a local development tool for [Azure Static Web Apps](https://docs.microsoft.com/azure/static-web-apps). It can:\n\n- Serve static app assets, or proxy to your app dev server\n- Serve API requests, or proxy to APIs running in Azure Functions Core Tools\n- Emulate authentication and authorization\n- Emulate Static Web Apps configuration, including routing and ACL roles\n- Deploy your app to Azure Static Web Apps\n\n## Important Notes\n\nIf you have suggestions or you encounter issues, please report them or help us fix them. Your contributions are very much appreciated. 🙏\n\nThe CLI emulates commonly used capabilities of the Azure Static Web Apps cloud service. **Some differences are expected. Always deploy and test your apps in Azure to confirm behavior.**\n\n## Quickstart\n\n### Installing the CLI with `npm`, `yarn` or `pnpm`:\n\n- To install the CLI globally, use:\n\n  ```bash\n  npm install -g @azure/static-web-apps-cli\n  ```\n\n  > You can also install the SWA CLI inside a project (instead of globally) as a development dependency using `npm install -D @azure/static-web-apps-cli`. This is highly recommended.\n\n### Basic usage\n\n- Open a SWA app folder at the root (outside any /api or /app folders):\n\n  ```bash\n  cd my-awesome-swa-app\n  ```\n\n- The best way to get started is to run the `swa` command alone and follow the interactive prompts:\n  ```bash\n  swa\n  ```\n\nIt will generate a configuration for you, then build your project and ask if you want to deploy it to Azure.\n\nSee [swa](https://azure.github.io/static-web-apps-cli/) for more details.\n\n### Extended usage\n\nHere are the currently supported `swa` commands. Use `swa <command> --help` to learn about options and usage for that particular command.\n\n- [`login`](https://azure.github.io/static-web-apps-cli/docs/cli/swa-login): login into Azure\n- [`init`](https://azure.github.io/static-web-apps-cli/docs/cli/swa-init): initialize a new static web app project\n- [`start`](https://azure.github.io/static-web-apps-cli/docs/cli/swa-start): start the emulator from a directory or bind to a dev server\n- [`deploy`](https://azure.github.io/static-web-apps-cli/docs/cli/swa-deploy): deploy the current project to Azure Static Web Apps\n- [`build`](https://azure.github.io/static-web-apps-cli/docs/cli/swa-build): build your project\n\n### Using `npx`:\n\n- Open a SWA app folder at the root (outside any /api or /app folders):\n\n```bash\ncd my-awesome-swa-app\n```\n\n- Create a configuration for your project:\n\n```bash\nnpx @azure/static-web-apps-cli init\n```\n\n- Start the emulator:\n\n```bash\nnpx @azure/static-web-apps-cli start\n```\n\n- Access your SWA app from `http://localhost:4280`\n\nSee all available [commands and options](https://azure.github.io/static-web-apps-cli/).\n\n## Want to help?\n\nWant to file a bug, contribute some code, or improve the documentation? Excellent! Read up on our guidelines for [contributing](https://github.com/azure/static-web-apps-cli/blob/master/CONTRIBUTING.md) and then check out one of our issues in the list: [community-help](https://github.com/azure/static-web-apps-cli/issues).\n","readmeFilename":"readme.md"}