본문으로 건너뛰기

Sui CLI

Sui는 Sui 네트워크와 그 기능, 그리고 Move 프로그래밍 언어와 상호작용하기 위한 커맨드 라인 인터페이스(CLI) 도구를 제공한다. 전체 커맨드 라인 도구 모음은 Sui CLI라고 하며, 명령은 기능별로 그룹화되어 있다. 각 명령 그룹은 일반적으로 최상위 명령 이름인 Sui Client CLI, Sui Keytool CLI, Sui Move CLI, Sui Validator CLI로 지칭한다.

Check Sui CLI installation

Before you can use the Sui CLI, you must install it. To check if the CLI exists on your system, open a terminal or console and type the following command:

$ sui --version

If the terminal or console responds with a version number, you already have the Sui CLI installed.

If the command is not found, follow the instructions in Install Sui to get the Sui CLI on your system.

Update CLI

Sui CLI의 설치 및 버전을 관리하는 권장 방법은 suiup을 사용하는 것이다: https://github.com/mystenLabs/suiup.

정보

tracing 기능은 Sui CLI에서 Move 테스트 커버리지와 디버거 지원을 추가하므로 중요하다. 이 기능을 활성화하지 않으면 이 두 기능을 사용할 수 없다.

Sui CLI commands

사용 가능한 최상위 명령이 여러 개 있지만, 사용자에게 가장 유용한 다섯 가지는 다음과 같다. 아직 문서화되지 않은 명령에 대해서는 help 플래그를 사용한다. 예를 들어, sui validator --help이다.

  • Sui Client CLI: sui client 명령을 사용하여 Sui 네트워크와 상호작용한다.
  • Sui Client PTB CLI: sui client ptb 명령을 사용하여 PTB를 빌드하고 실행한다.
  • Sui Keytool CLI: sui keytool 명령을 사용하여 암호화 유틸리티에 접근한다.
  • Sui Move CLI: sui move 명령을 사용하여 Move 프로그래밍 언어로 작업한다.
  • Sui Replay CLI: sui client replay 명령을 사용하여 transaction을 재생하고 Move Debugger 및 트레이스 분석 도구용 transaction 트레이스를 생성한다.
  • Sui Validator CLI: sui validator 명령을 사용하여 sui validator에게 유용한 커맨드 라인 도구에 접근한다.