OP Stack 배포를 위한 intent 및 state 파일을 초기화하는 방법을 알아봅니다.
init 명령은 지정된 디렉터리에 새로운 intent 및 state 파일을 생성하는 데 사용됩니다. 이 명령은 모든 새 배포의
시작점입니다.
사용법
init 명령은 다음과 같이 사용합니다.
op-deployer init \ --l1-chain-id <chain ID of your L1> \ --l2-chain-ids <comma separated list of chain IDs for your L2s> \ --outdir <directory to write the intent and state files> \ --intent-type <standard/custom/standard-overrides>
그러면 출력 디렉터리에 다음 파일이 생성됩니다.
outdir├── intent.toml└── state.json
intent.toml 파일에는 배포 구성을 지정합니다. state.json 파일에는 OP Deployer가 배포의 각 단계가 끝날 때마다
배포의 현재 상태를 출력합니다.