From 677fbba897b6367cca55ce80714e4259365dcaab Mon Sep 17 00:00:00 2001 From: Junseong Park <39112954+jsparkdev@users.noreply.github.com> Date: Fri, 18 Apr 2025 22:36:21 +0900 Subject: [PATCH] i18n(ko-KR): create `cli.mdx` --- src/content/docs/ko/how-it-works/cli.mdx | 215 +++++++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 src/content/docs/ko/how-it-works/cli.mdx diff --git a/src/content/docs/ko/how-it-works/cli.mdx b/src/content/docs/ko/how-it-works/cli.mdx new file mode 100644 index 00000000..f8bf3d66 --- /dev/null +++ b/src/content/docs/ko/how-it-works/cli.mdx @@ -0,0 +1,215 @@ +--- +i18nReady: true +title: "CLI" +description: "StudioCMS CLI와 사용법에 대해 알아보세요." +sidebar: + order: 2 +--- + +import { Tabs, TabItem } from '@astrojs/starlight/components'; +import ReadMore from '~/components/ReadMore.astro'; + +# 소개 + +StudioCMS CLI는 새로운 StudioCMS 프로젝트를 빠르게 구성하고 StudioCMS에 유용한 유틸리티를 제공하는 도구입니다. + +StudioCMS 생태계에는 두 가지 서로 다른 CLI가 있습니다. + +- **`create-studiocms`**: StudioCMS 프로젝트 스캐폴딩 CLI +- **`studiocms`**: StudioCMS 유틸리티 CLI + +다음은 StudioCMS CLI와 그 구성 요소에 대한 세부 정보입니다. + +## `create-studiocms` + +### 설치 + + + + ```sh + npm create studiocms@latest + ``` + + + ```sh + pnpm create studiocms + ``` + + + ```sh + yarn create studiocms + ``` + + + +`create-studiocms`는 기본적으로 _대화형_ 모드로 실행되지만, 명령줄 인수를 사용하여 프로젝트 이름과 템플릿을 지정할 수도 있습니다. + + + + ```sh + npm create studiocms@latest -- --template studiocms/basics --project-name my-studiocms-project + ``` + + + ```sh + pnpm create studiocms --template studiocms/basics --project-name my-studiocms-project + ``` + + + ```sh + yarn create studiocms --template studiocms/basics --project-name my-studiocms-project + ``` + + + +GitHub에서 제공되는 템플릿의 [전체 목록][templates]을 확인해 보세요. + +`--template`을 사용할 때 CLI는 템플릿 리포지토리의 모든 폴더를 검색합니다. 예를 들어, `studiocms/basics` 템플릿은 리포지토리 루트의 `studiocms` 폴더에 있는 `basics` 프로젝트를 가리킵니다. + +### 전체 CLI 옵션 및 명령 + +#### 기본 진입점 + +```log +Usage: create-studiocms [options] [command] + +Options: + -V, --version Output the current version of the CLI Toolkit. + -h, --help display help for command + --color force color output + --no-color disable color output + +Commands: + get-turso Get the latest version of Turso. + help Show help for command + interactive* Start the interactive CLI. + + * Indicates the default command that is run when calling this CLI. +``` + +#### `get-turso` + +Turso의 [문서](https://docs.turso.tech/cli/installation)에 있는 스크립트를 사용하여 Turso의 최신 버전을 다운로드하고 설치할 수 있습니다. + +:::note +Turso에 따르면 Windows에서는 WSL을 사용해야 합니다. +::: + +```log +Usage: getTurso [options] + +Turso CLI Installer + +Options: + -h, --help display help for command +``` + +#### 대화형 (기본 명령) + +```log +Usage: create-studiocms interactive [options] + +Start the interactive CLI. Powered by [clack](https://clack.cc). + +This command will open an interactive CLI prompt to guide you through +the process of creating a new StudioCMS(or StudioCMS Ecosystem package) +project using one of the available templates. + +Options: + -t, --template