RedPlus 개인 블로그

시삽: 레드플러스 님 
게시판 이동:
 제목 : 32. Command-Line Interface 사용하기
글번호: 247
작성자: Administrator ( 레드플러스 / redplus@live.com )
작성일: 2011/05/26 오후 5:57:59 (2011/05/26 오후 5:57:59 수정)
조회수: 4532

소개

본 강좌는 지난 번 다뤄본 Orchard.exe에 대한 내용과 중복되는 내용입니다.

 

Orchard.exe

Orchard CMS는 웹에서 대부분을 관리하는 기능을 제공합니다. 하지만, 웹이 아닌 데스크톱 환경에서 추가적인 기능을 확장한다거나, Orchard에 대한 관리를 하고자할 때 유용하게 사용할 수 있는 명령줄 도구인 Orchard.exe 파일을 제공합니다.

이 도구는 Orchard 웹 사이트의 bin 폴더에 위치합니다. Windows 탐색기를 사용하여 Orchard.exe 파일을 열려면, bin 폴더에 SHIFT 버튼을 누른 후 마우스 오른쪽 버튼을 클릭하면, [여기서 명령 창 열기] 메뉴가 나타납니다. 이를 선택하면, 아래 그림처럼 bin 폴더까지 도스창을 열어 볼 수 있습니다.(경우에 따라서는 직접 타이핑해서 들어와도 무관합니다.)

그런 후 Orchard.exe 명령어를 타이핑 후 엔터 키를 입력하면, Orchard 명령 프롬프트가 열립니다.

orchard_cmd_line

 

Orchard에 대한 도움말

Orchard.exe 실행 후 관련된 도움말을 살펴보려면, 아래 그림과 같이 “help commands” 명령어를 입력합니다.

help_commands_initial

 

Orchard.exe가 실행 중일 때에는 Orchard 소스를 가지고, 명령 프롬프트 환경에서 Orchard CMS를 설치할 수도 있습니다.

setup_cmd

 

도움말 목록

아래 리스트는 주요 명령어에 대한 샘플 도움말을 나타냅니다.

orchard> help commands
List of available commands:
---------------------------

blog create /Slug:<slug> /Title:<title> /Owner:<username> [/MenuText:<menu text>]
        Creates a new Blog

blog import /Slug:<slug> /FeedUrl:<feed url> /Owner:<username>
        Import all items from <feed url> into the blog at the specified <slug>

cultures get site culture
        Get culture for the site

cultures list
        List site cultures

cultures set site culture <culture-name>
        Set culture for the site

feature disable <feature-name-1> ... <feature-name-n>
        Disable one or more features

feature enable <feature-name-1> ... <feature-name-n>
        Enable one or more features

feature list [/Summary:true|false]
        Display list of available features

help <command>
        Display help text for <command>

help commands
        Display help text for all available commands

package create <extensionName> <path>
    Create a package for the extension <extensionName>
    (an extension being a module or a theme).
    The package will be output at the <path> specified.
    The default filename is Orchard.[Module|Theme].<extensionName>.<extensionVersion>.nupkg.
    For example, "package create SampleModule c:\temp" will create the package
    "c:\temp\Orchard.Module.SampleModule.1.0.0.nupkg".

package install <packageId> <location> /Version:<version>
        Install a module or a theme from a package file.

package uninstall <packageId>
    Uninstall a module or a theme.
    The <packageId> should take the format Orchard.[Module|Theme].<extensionName>.
    For example, "package uninstall Orchard.Module.SampleModule" will uninstall the Module under the "~/Modules/SampleModule" directory and
    "package uninstall Orchard.Theme.SampleTheme" will uninstall the Theme under the "~/Themes/SampleTheme" directory.

user create /UserName:<username> /Password:<password> /Email:<email>
        Creates a new User

 

도움말 사용 예

Orchard에서 사용되는 특정 모듈 또는 테마에 대한 활성화/비활성화 여부를 목록으로 출력하고자 한다면, “feature list/Summary:true” 명령어로 실행할 수 있습니다. 또한, 비활성화 되어있는 feature(모듈/테마)에 대하여 활성화시키려면 “feature enable <feature-name>” 명령어 등을 사용할 수 있습니다.

 

끝.

 

관련글

 

 

본 강좌는 아래 경로에서 연재되고 있는 강좌입니다.

오픈소스 웹어플리케이션 사용자 Tip과 강좌 – OSSFair(http://www.sqler.com/OSS)

 
이전 글   다음 글 삭제 수정 답변 글쓰기 리스트


관련 아티클 리스트
  제       목 파일 작성자 작성일 조회
이전글 21. Orchard 사이트 설정(Settings) 변경 - Administrator 2011-05-26 3742
현재글 32. Command-Line Interface 사용하기 - Administrator 2011-05-26 4532
다음글 0. Orchard CMS 소개 - Administrator 2011-05-23 4554
관련 페이지 리스트
numtitlenamedateview
388 C 언어에서 값 전달과 참조 전달(Call By Value and Call By Re... Administrator 2023-03-09 1462
387 병합 알고리즘 순서도 2022-10-22 2123
386 C 언어 강의: scanf를 엔터키를 기준으로 여러 행으로 값을 입력 받기 Administrator 2022-01-09 3505
385 C 언어: scanf 사용해서 표준 입력인 콘솔로부터 나이를 정수로 입력 받아 출력 Administrator 2022-01-07 2524
384 Java 코드 샘플 - Function 인터페이스로 람다 식 만들기 Administrator 2022-01-04 2435
383 C# 코드 샘플 - 널 조건부 연산자 사용하기 Administrator 2022-01-02 2470
382 C# 코드 샘플 - 널 병합 연산자와 default 키워드 Administrator 2022-01-02 2400
381 C# 코드 샘플 - 널 병합 연산자로 문자열 변수의 NULL 값 확인하기 Administrator 2022-01-02 2316
380 C# 강의 - 14세 미만 체크 메서드 구현 Administrator 2022-01-01 2350
379 C 언어 천 단위 콤마 찍기 thousands_separator.c Administrator 2021-12-30 3145
378 for 문 순서도 - for 문(for loop) 순서도(flowchart) Administrator 2021-12-28 4991
377 C 언어 코드 샘플 - 전처리기 - 조건부 컴파일 Administrator 2021-12-27 2348
376 C 언어 코드 샘플 - 전처리기 - 매크로 함수 Administrator 2021-12-27 2356
375 http-server 설치하기 - 로컬 루프백 주소로 웹페이지 실행 2021-12-27 2366
374 C 언어 코드 샘플 - N명의 학생의 점수를 입력받아 1차원 배열에 저장 후 총점 구... Administrator 2021-12-27 2380
373 Java 코드 샘플 - 두 수의 합을 구하는 함수 Administrator 2021-12-26 2293
372 C 언어 코드 샘플 - 두 수의 합을 구하는 함수 Administrator 2021-12-26 2318
371 C# 교과서 강좌 - LINQ - Select 확장 메서드에 익명 형식 사용하기 Administrator 2021-12-26 2386
370 C# 교과서 강의 - LINQ - Select 확장 메서드를 사용하여 새로운 형태로 ... Administrator 2021-12-26 2341
369 C 언어 코드 샘플 - static-shared - 정적(공유) 변수 사용하기 Administrator 2021-12-26 2361
 
 
 
손님 사용자 Anonymous (손님)
로그인 Home