{"_id":"@alphasquad/create-storefront-cli","_rev":"4-5c5ba0c687011b6ff6e214931570899d","name":"@alphasquad/create-storefront-cli","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@alphasquad/create-storefront-cli","version":"1.0.0","keywords":["saleor","storefront","scaffold","cli","ecommerce"],"author":"","license":"ISC","_id":"@alphasquad/create-storefront-cli@1.0.0","maintainers":[{"name":"aqkhan","email":"aqk.neo@gmail.com"},{"name":"abasitq","email":"basit@iintellect.co.uk"},{"name":"assadakramiintellect","email":"assad@iintellect.co.uk"}],"homepage":"https://github.com/AlphaSquadTech/create-saleor-storefront-cli#readme","bugs":{"url":"https://github.com/AlphaSquadTech/create-saleor-storefront-cli/issues"},"bin":{"create-storefront":"index.js"},"dist":{"shasum":"b32fb8deeff5320ec5e311faf959d4ec4220c0d1","tarball":"https://registry.npmjs.org/@alphasquad/create-storefront-cli/-/create-storefront-cli-1.0.0.tgz","fileCount":3,"integrity":"sha512-Ib5y5NiehMjqNpbPupnATWs77OkUPCmhFMhSvi5hgMBQi9dNkgY1tajUDbiuTTWhxSmroq5hfaCB0YWnLeX58A==","signatures":[{"sig":"MEUCIQDHxyS7gaUXj68fposdef+be6nuNNwbO3Y4Rr+bJH1EpQIgYgTzBvD0eCww3SvjaU0G5bIM3hFtCBcfnN4Kt0VJc8o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alphasquad%2fcreate-storefront-cli@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":17881},"main":"index.js","engines":{"node":">=18"},"gitHead":"175854b88d42596e3dafd0fb55c69ceb06593cc9","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"aqkhan","email":"aqk.neo@gmail.com"},"repository":{"url":"git+https://github.com/AlphaSquadTech/create-saleor-storefront-cli.git","type":"git"},"_npmVersion":"10.8.2","description":"A CLI tool for scaffolding Saleor storefronts from templates","directories":{},"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/create-storefront-cli_1.0.0_1771960061753_0.5282408944778245","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@alphasquad/create-storefront-cli","version":"1.0.1","keywords":["saleor","storefront","scaffold","cli","ecommerce"],"author":"","license":"ISC","_id":"@alphasquad/create-storefront-cli@1.0.1","maintainers":[{"name":"aqkhan","email":"aqk.neo@gmail.com"},{"name":"abasitq","email":"basit@iintellect.co.uk"},{"name":"assadakramiintellect","email":"assad@iintellect.co.uk"}],"homepage":"https://github.com/AlphaSquadTech/create-saleor-storefront-cli#readme","bugs":{"url":"https://github.com/AlphaSquadTech/create-saleor-storefront-cli/issues"},"bin":{"create-storefront":"index.js"},"dist":{"shasum":"30c28c4693c20d3e2f2e7599180f50fbc8c52da0","tarball":"https://registry.npmjs.org/@alphasquad/create-storefront-cli/-/create-storefront-cli-1.0.1.tgz","fileCount":4,"integrity":"sha512-vo2eQH3L0VqotKTvptTne3l/APYzQlERCEESraV7vLr8BfLvQO7J8ftF5cnkaJJr8mcyjaLjYBaSW9KVlPyFEQ==","signatures":[{"sig":"MEQCIAlPT4nSPhK7y5tS08sUCkFKN9d9INkRM6v5akClU7YZAiB20o5ulzHT0RoCPx7uW2LcrTSbizeGq3Hx5RRHkq+fCw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alphasquad%2fcreate-storefront-cli@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22037},"main":"index.js","engines":{"node":">=18"},"gitHead":"c9d7989d0ffded808d031410745c778473167611","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"aqkhan","email":"aqk.neo@gmail.com"},"repository":{"url":"git+https://github.com/AlphaSquadTech/create-saleor-storefront-cli.git","type":"git"},"_npmVersion":"10.8.2","description":"A CLI tool for scaffolding Saleor storefronts from templates","directories":{},"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/create-storefront-cli_1.0.1_1772016921753_0.6777176581609186","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@alphasquad/create-storefront-cli","version":"1.0.2","keywords":["saleor","storefront","scaffold","cli","ecommerce"],"author":"","license":"ISC","_id":"@alphasquad/create-storefront-cli@1.0.2","maintainers":[{"name":"aqkhan","email":"aqk.neo@gmail.com"},{"name":"abasitq","email":"basit@iintellect.co.uk"},{"name":"assadakramiintellect","email":"assad@iintellect.co.uk"}],"homepage":"https://github.com/AlphaSquadTech/create-saleor-storefront-cli#readme","bugs":{"url":"https://github.com/AlphaSquadTech/create-saleor-storefront-cli/issues"},"bin":{"create-storefront":"index.js"},"dist":{"shasum":"7c55b2c94981069ef6148d03ac327e4203dc68fe","tarball":"https://registry.npmjs.org/@alphasquad/create-storefront-cli/-/create-storefront-cli-1.0.2.tgz","fileCount":4,"integrity":"sha512-TjdwaQUcnIk7Z6Nr94PeLTiZFzDUSoZeXf1XK2DMO/0kGaKPTQtv06EXfJFrdGtpv1PKkTsPk5Cum2NI3s8pig==","signatures":[{"sig":"MEUCIBc6Q30TRU1z4fmKM/WkCkGYC3/JRsJLdDJeaVPahKAHAiEA4bCeoqhifqFMQ4ezDE55BVYXz8Bry+WBv3k6qAkeM7U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alphasquad%2fcreate-storefront-cli@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":24764},"main":"index.js","engines":{"node":">=18"},"gitHead":"9294501b7a59a57b33738155fc7b56689542d0a0","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"aqkhan","email":"aqk.neo@gmail.com"},"repository":{"url":"git+https://github.com/AlphaSquadTech/create-saleor-storefront-cli.git","type":"git"},"_npmVersion":"10.8.2","description":"A CLI tool for scaffolding Saleor storefronts from templates","directories":{},"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/create-storefront-cli_1.0.2_1772125484038_0.026373563716483472","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@alphasquad/create-storefront-cli","version":"1.1.0","description":"A CLI tool for scaffolding Saleor storefronts from templates","main":"index.js","bin":{"create-storefront":"index.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["saleor","storefront","scaffold","cli","ecommerce"],"repository":{"type":"git","url":"git+https://github.com/AlphaSquadTech/create-saleor-storefront-cli.git"},"bugs":{"url":"https://github.com/AlphaSquadTech/create-saleor-storefront-cli/issues"},"homepage":"https://github.com/AlphaSquadTech/create-saleor-storefront-cli#readme","author":"","license":"ISC","engines":{"node":">=18"},"_id":"@alphasquad/create-storefront-cli@1.1.0","gitHead":"db85370564ad66e63ffb866b576539270c697f0e","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Rj7m6LzAy1Qyv62gYYa/r1SmIHpBmQlPoFX9gERmtpJRz5WkhT+m6aioOf04gFlxvtHTYwL1dLsX4mSfMGSurA==","shasum":"ebffd958607b10fd6701adfd6c4632463c5e45ac","tarball":"https://registry.npmjs.org/@alphasquad/create-storefront-cli/-/create-storefront-cli-1.1.0.tgz","fileCount":4,"unpackedSize":26114,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alphasquad%2fcreate-storefront-cli@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCSCG4IUXKshlZJwFj6l3V2JTNau8p7ZG/gVOxPVwFxeAIhANNJABRve1vizprucg2Ebfd/cY5VJ/tsuuWwQYRdstdn"}]},"_npmUser":{"name":"aqkhan","email":"aqk.neo@gmail.com"},"directories":{},"maintainers":[{"name":"aqkhan","email":"aqk.neo@gmail.com"},{"name":"abasitq","email":"basit@iintellect.co.uk"},{"name":"assadakramiintellect","email":"assad@iintellect.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/create-storefront-cli_1.1.0_1772193515059_0.004061040915331882"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-24T19:07:41.678Z","modified":"2026-02-27T11:58:35.535Z","1.0.0":"2026-02-24T19:07:41.898Z","1.0.1":"2026-02-25T10:55:21.933Z","1.0.2":"2026-02-26T17:04:44.187Z","1.1.0":"2026-02-27T11:58:35.203Z"},"bugs":{"url":"https://github.com/AlphaSquadTech/create-saleor-storefront-cli/issues"},"license":"ISC","homepage":"https://github.com/AlphaSquadTech/create-saleor-storefront-cli#readme","keywords":["saleor","storefront","scaffold","cli","ecommerce"],"repository":{"type":"git","url":"git+https://github.com/AlphaSquadTech/create-saleor-storefront-cli.git"},"description":"A CLI tool for scaffolding Saleor storefronts from templates","maintainers":[{"name":"aqkhan","email":"aqk.neo@gmail.com"},{"name":"abasitq","email":"basit@iintellect.co.uk"},{"name":"assadakramiintellect","email":"assad@iintellect.co.uk"}],"readme":"# @alphasquad/create-storefront-cli\n\nA CLI tool for scaffolding Saleor storefronts from templates.\n\n## Prerequisites\n\n- Node.js >= 18\n- Git\n- SSH keys configured for GitHub (default) **or** a GitHub Personal Access Token (PAT) with repo access\n\n## Quick start\n\n```bash\nnpx @alphasquad/create-storefront-cli --name my-store\n```\n\nThe CLI will prompt you to select a template:\n\n```\nSelect a template:\n\n  1) basic\n  2) standard\n  3) advanced\n\nEnter choice (1-3):\n```\n\nOr install globally:\n\n```bash\nnpm i -g @alphasquad/create-storefront-cli\ncreate-storefront --name my-store\n```\n\n## Options\n\n| Flag             | Required | Description                                                    |\n| ---------------- | -------- | -------------------------------------------------------------- |\n| `--name`         | Yes      | Tenant / directory name                                        |\n| `--template`     | No       | Template variant: `basic`, `standard`, `advanced` (prompts if omitted) |\n| `--no-ssh`       | No       | Disable SSH and use HTTPS + PAT instead                        |\n| `--pat`          | No       | GitHub Personal Access Token (implies `--no-ssh`)              |\n| `--settings`     | No       | Path to `settings.json` (default: `./settings.json`)           |\n| `--template-url` | No       | Custom Git URL (overrides `--template`)                        |\n| `--help`         | No       | Show help message                                              |\n\n## Authentication\n\nSSH is the default. The CLI uses your SSH agent and keys (`~/.ssh/`) to clone repos — no token needed.\n\nTo fall back to HTTPS + PAT, pass `--no-ssh` or `--pat <token>`, or set the `GITHUB_PAT` environment variable.\n\n**PAT resolution order** (when using HTTPS):\n\n1. `GITHUB_PAT` environment variable\n2. `--pat` flag\n3. Interactive prompt (masked input)\n\n## Using a settings file\n\nIf a `settings.json` file exists in your working directory (or at the path given by `--settings`), the CLI will use it to pre-fill environment variables instead of prompting interactively.\n\n```json\n{\n  \"templateUrl\": \"https://github.com/AlphaSquadTech/saleor-template-standard.git\",\n  \"env\": {\n    \"NEXT_PUBLIC_API_URL\": \"https://api.example.com/graphql/\",\n    \"NEXT_PUBLIC_SITE_URL\": \"http://localhost:3000\",\n    \"NEXT_PUBLIC_STOREFRONT_URL\": \"http://localhost:3000\",\n    \"NEXT_PUBLIC_SALEOR_CHANNEL\": \"default-channel\"\n  }\n}\n```\n\nIf no `settings.json` is found, the CLI reads `.env.example` from the cloned template and prompts you for each value.\n\n## What it does\n\nThe CLI runs through 6 steps:\n\n1. **Resolve authentication** — SSH keys (default) or HTTPS + PAT\n2. **Clone template** — clones the selected template repo\n3. **Fresh git init** — removes template history and creates a clean repo\n4. **Initialize submodules** — syncs and updates git submodules (if any)\n5. **Create `.env.local`** — from `settings.json` values or interactive prompts\n6. **Final setup** — creates `redirects.json` and makes an initial commit\n\n## Examples\n\n```bash\n# Fully interactive — prompts for template, uses SSH\nnpx @alphasquad/create-storefront-cli --name my-store\n\n# Skip template prompt by passing --template directly\nnpx @alphasquad/create-storefront-cli --name my-store --template standard\n\n# Explicit PAT (switches to HTTPS mode)\nnpx @alphasquad/create-storefront-cli --name my-store --pat ghp_xxx\n\n# PAT from environment\nGITHUB_PAT=ghp_xxx npx @alphasquad/create-storefront-cli --name my-store\n\n# Force HTTPS mode — prompts for PAT interactively\nnpx @alphasquad/create-storefront-cli --name my-store --no-ssh\n\n# Custom template repo\nnpx @alphasquad/create-storefront-cli --name my-store --template-url https://github.com/org/repo.git\n```\n\n## After scaffolding\n\n```bash\ncd my-store\nyarn install\nyarn dev\n```\n\n## License\n\nISC\n","readmeFilename":"README.md"}