스캐폴드 명령
스캐폴드 명령 (kongctl scaffold)
kongctl scaffold 명령은 지원되는 선언형 리소스 경로에 대해 주석이 달린 YAML 스타터 구성을 만들어 줘요. 경로 없이 실행하면 사용할 수 있는 리소스 경로 목록을 보여 줘요. 생성된 결과는 그대로 쓰지 않고 편집한 뒤 apply나 sync 같은 선언형 명령에 사용하도록 설계됐어요. 베타나 테크 프리뷰 리소스 스캐폴드에는 성숙도 안내 주석이 포함되고, GA 스캐폴드에는 이런 경고가 없어요
출처: 문서
본문
선언형 리소스 경로예요.
경로 없이 kongctl scaffold를 실행하면 사용 가능한 리소스 경로 목록을 볼 수 있어요.
출력 결과는 편집한 다음 apply나 sync 같은 선언형 커맨드와 함께 사용하기 위한 거예요.
베타 또는 테크 프리뷰 리소스용 스캐폴드는 maturity 주석으로 시작해요. GA 스캐폴드에는 maturity 경고가 포함되지 않아요.
커맨드 사용법
Usage:
kongctl scaffold <resource-path> [flags]
Examples:
# Generate a starter API configuration
kongctl scaffold api
# Generate a root-level child resource scaffold
kongctl scaffold api_version
# Generate a nested child scaffold
kongctl scaffold api.versions
# Generate an analytics dashboard scaffold with a starter tile
kongctl scaffold analytics.dashboards
Flags:
--color-theme string Configures the CLI UI/theme (prompt, tables, TUI elements).
- Config path: [ color-theme ]
- Examples : [ auto, 3024_day, 3024_night, aardvark_blue, abernathy ]
- Reference : [ https://github.com/lrstanley/bubbletint/blob/master/DEFAULT_TINTS.md ] (default "auto")
--config-file string Path to the configuration file to load.
- Environment variable: KONGCTL_CONFIG_FILE (overridden by this flag)
- Default: [ $XDG_CONFIG_HOME/kongctl/config.yaml ]
-h, --help help for scaffold
--log-file string Write execution logs to the specified file instead of STDERR.
- Config path: [ log-file ]
--log-level string Configures the logging level. Execution logs are written to STDERR.
- Config path: [ log-level ]
- Allowed : [ trace|debug|info|warn|error ] (default "error")
--no-telemetry Disable telemetry for this command invocation. Overrides config and env.
- Config path: [ telemetry.enabled ]
- Env var : [ KONGCTL_NO_TELEMETRY ]
- Default : [ false ]
--no-trunc Preserve full cell widths in static text tables beyond terminal width.
Does not change column selection, UUID formatting, or explicit string slices.
- Config path: [ text.no-trunc ]
- Default : [ false ]
-p, --profile string Specify the profile to use for this command. (default "default")
--text-id-format string Configure UUID rendering in static text-table ID columns.
- Config path: [ text.id-format ]
- Allowed : [ compact|full ]
- Default : [ compact ]
--text-layout string Configure static text-table column selection.
- Config path: [ text.layout ]
- Allowed : [ compact|auto|wide ]
- Default : [ compact ]
관련 리소스
더 알아보기 (Learn more)
- 스캐폴드로 만든 구성을 적용하고 동기화하는 선언형 구성 워크플로 전반을 살펴봐요 — Declarative configuration with kongctl
- kongctl CLI 설치부터 기본 사용법까지 시작하는 방법을 안내받아요 — Get started with kongctl