cfctl init

cfctl setting init 명령어를 통해 cfctl을 사용하기 위한 환경 설정을 진행할 수 있습니다.

❯ cfctl setting
Manage setting file for cfctl.
You can initialize, switch environments, and display the current configuration.

Usage:
  cfctl setting [command]

Available Commands:
  endpoint    Set the endpoint for the current environment
  environment List and manage environments
  init        Initialize a new environment setting
  show        Display the current cfctl configuration
  token       Set the token for the current environment

Flags:
  -h, --help   help for setting

Use "cfctl setting [command] --help" for more information about a command.

cfctl setting init 명령어에는 proxystatic 하위 명령어가 있으며, 유저의 목적에 따라 선택하여 사용할 수 있습니다.

❯ cfctl setting init
  ERROR   You must specify either 'proxy' or 'static' command.
Initialize a new environment setting for cfctl by specifying an endpoint

Usage:
  cfctl setting init [flags]
  cfctl setting init [command]

Available Commands:
  proxy       Initialize configuration with a proxy URL
  static      Initialize static connection to a local or service endpoint

Flags:
  -h, --help   help for init

Use "cfctl setting init [command] --help" for more information about a command.

그럼 cfctl setting initproxy 하위 명령어 먼저 알아봅시다.