diff --git a/packages/cli/create-strapi/LICENSE b/packages/cli/create-strapi/LICENSE new file mode 100644 index 0000000000..db018546b5 --- /dev/null +++ b/packages/cli/create-strapi/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2015-present Strapi Solutions SAS + +Portions of the Strapi software are licensed as follows: + +* All software that resides under an "ee/" directory (the “EE Software”), if that directory exists, is licensed under the license defined in "ee/LICENSE". + +* All software outside of the above-mentioned directories or restrictions above is available under the "MIT Expat" license as set forth below. + +MIT Expat License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/cli/create-strapi/README.md b/packages/cli/create-strapi/README.md new file mode 100644 index 0000000000..3fef1c691c --- /dev/null +++ b/packages/cli/create-strapi/README.md @@ -0,0 +1,21 @@ +# Create strapi + +This package includes the `create-strapi` CLI to make the creation of a strapi project simpler. + +## How to use + +### Quick usage (recommended) + +Using yarn create command + +```sh +npm init strapi@latest +yarn create strapi@latest +pnpm create strapi@latest +``` + +Using npx + +```sh +npx create-strapi@latest +``` diff --git a/packages/cli/create-strapi/bin/index.js b/packages/cli/create-strapi/bin/index.js new file mode 100755 index 0000000000..73f72c759e --- /dev/null +++ b/packages/cli/create-strapi/bin/index.js @@ -0,0 +1,5 @@ +#!/usr/bin/env node + +'use strict'; + +require('create-strapi-app/bin'); diff --git a/packages/cli/create-strapi/package.json b/packages/cli/create-strapi/package.json new file mode 100644 index 0000000000..708740b81b --- /dev/null +++ b/packages/cli/create-strapi/package.json @@ -0,0 +1,45 @@ +{ + "name": "create-strapi", + "version": "5.0.0-beta.0", + "description": "Generate a new Strapi application.", + "keywords": [ + "create-strapi", + "create", + "new", + "generate", + "strapi" + ], + "homepage": "https://strapi.io", + "bugs": { + "url": "https://github.com/strapi/strapi/issues" + }, + "repository": { + "type": "git", + "url": "git://github.com/strapi/strapi.git" + }, + "license": "SEE LICENSE IN LICENSE", + "author": { + "name": "Strapi Solutions SAS", + "email": "hi@strapi.io", + "url": "https://strapi.io" + }, + "maintainers": [ + { + "name": "Strapi Solutions SAS", + "email": "hi@strapi.io", + "url": "https://strapi.io" + } + ], + "main": "", + "bin": "./bin/index.js", + "files": [ + "bin/" + ], + "dependencies": { + "create-strapi-app": "5.0.0-beta.0" + }, + "engines": { + "node": ">=18.0.0 <=20.x.x", + "npm": ">=6.0.0" + } +} diff --git a/yarn.lock b/yarn.lock index 9661a7ac30..1ab8380336 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13320,7 +13320,7 @@ __metadata: languageName: node linkType: hard -"create-strapi-app@workspace:packages/cli/create-strapi-app": +"create-strapi-app@npm:5.0.0-beta.0, create-strapi-app@workspace:packages/cli/create-strapi-app": version: 0.0.0-use.local resolution: "create-strapi-app@workspace:packages/cli/create-strapi-app" dependencies: @@ -13355,6 +13355,16 @@ __metadata: languageName: unknown linkType: soft +"create-strapi@workspace:packages/cli/create-strapi": + version: 0.0.0-use.local + resolution: "create-strapi@workspace:packages/cli/create-strapi" + dependencies: + create-strapi-app: "npm:5.0.0-beta.0" + bin: + create-strapi: ./bin/index.js + languageName: unknown + linkType: soft + "crelt@npm:^1.0.5": version: 1.0.5 resolution: "crelt@npm:1.0.5"