CometAPI CLI를 구성합니다: config 파일 위치, 사용 가능한 설정, 자격 증명 관리, 환경 변수, 보안 모범 사례.
CometAPI CLI는 TOML config 파일, 환경 변수, 명령줄 플래그에서 설정을 읽습니다. 동일한 설정을 여러 소스에서 제공할 수 있는 경우 우선순위는 다음과 같습니다:CLI flags > config file > environment variables > defaults
위치: ~/.config/cometapi/config.toml설정 마법사를 실행하여 대화형으로 config 파일을 생성합니다:
cometapi init
또는 config 하위 명령으로 개별 설정을 관리할 수 있습니다:
# View current configurationcometapi config show# Set a valuecometapi config set api_key sk-...# Remove a valuecometapi config unset api_key# Show the config file pathcometapi config path
선택 사항입니다. access token은 계정 수준 명령인 account, stats, tokens, logs, tasks에 필요합니다.CometAPI Console → Personal Settings에서 access token을 생성하세요.다음 방법 중 하나로 설정합니다: