CLI Documentation

Source Parts CLI로 더 빠르게 구축

구성 요소 중심의 명령줄 툴킷으로 전체 소싱 워크플로를 설치, 인증 및 자동화합니다.

환경용 CLI 설치

하나의 명령을 사용하여 macOS, Linux 또는 Windows에 설치하고 Source Parts로 인증합니다.

Copy a command to get started
Choose your operating system
Run the command in your terminal and follow the prompts to authenticate with Source Parts.
curl -fsSL https://source.parts/cli/install.sh | bash

Need a different platform? Visit the GitHub repository for container images and build instructions.

몇 분 만에 인증

Source Parts 플랫폼 전체에서 사용되는 동일한 보안 표준을 적용합니다.

범위 API 키 생성
역할 기반 권한 및 자동 만료가 있는 환경별 키를 발급합니다.
최소 권한 범위 할당
CLI 프로필을 Source Parts 역할에 매핑하여 읽기, 쓰기 및 승인 액세스를 제어합니다.
키 교체 자동화
내장 갱신 명령 및 정책 알림을 사용하여 일정에 따라 자격 증명을 교체합니다.

명령 참조

소싱, 견적 및 이행 워크플로를 지원하는 핵심 명령 제품군을 살펴보세요.

검색 및 인텔리전스
수백만 개의 구성 요소를 쿼리하고 수명 주기 위험을 분석하며 가격 스냅샷을 내보냅니다.
CLI

components search

Search the Source Parts catalog with filters for stock, manufacturer, compliance, and lifecycle status.

parts components search --query "stm32f4" --in-stock

components lifecycle

Inspect lifecycle events, alternates, and risk signals for critical components.

parts components lifecycle --mpn ESP32-C3

inventory availability

Return regional inventory, lead times, and allocation windows in real time.

parts inventory availability --sku 100-443-ESP32 --region us
견적 및 상거래
견적, BOM 업로드 및 구매 주문 워크플로를 자동화합니다.
CLI

quotes create

Upload BOM files, apply pricing tiers, and generate shareable quotes.

parts quotes create --file ./bom.csv --customer-id 98213

orders submit

Convert approved quotes to orders with payment terms and shipment preferences.

parts orders submit --quote Q-14233 --method net-30

fulfillment track

Monitor fulfillment milestones, logistics updates, and delivery ETA.

parts fulfillment track --order SO-55821
자동화 및 통합
CLI를 CI 파이프라인, 스케줄러 및 다운스트림 시스템에 연결합니다.
CLI

automation workflows run

Execute saved workflows that bundle multiple commands with approvals and notifications.

parts automation workflows run nightly-replenishment

integrations sync

Synchronize Source Parts data with ERP, PLM, or data warehouses.

parts integrations sync --target erp

audit log export

Export command history with user, timestamp, and result metadata for compliance review.

parts audit log export --since 7d --format csv

자동화 레시피

환경에 맞게 조정할 수 있는 즉시 실행 가능한 예제로 워크플로를 시작하세요.

Monitor lifecycle risk
Schedule a job that flags lifecycle changes and sends alerts to Slack.
parts components lifecycle --mpn $1 --json | jq '.alerts[]' | slackctl send --channel sourcing-alerts
Sync BOM alternates
Update engineering alternates nightly and persist results to your PLM.
parts quotes bom-sync --project ${PROJECT_ID} | plmctl import --workspace hardware
Gate releases in CI
Fail builds when BOM risk exceeds tolerance before merging to main.
parts automation evaluate --workflow ci-bom-check || exit 1

한 번 구성하고 어디서나 재사용

프로필을 사용하면 팀이 비밀을 안전하게 유지하면서 연결을 공유할 수 있습니다.

Key configuration fields
Define defaults in ~/.sourceparts/config.json or set environment overrides for CI.
Profiles

profile

Named profile used to scope credentials and default workspace settings.

{"default": "production"}

workspaceId

Source Parts workspace identifier used to fetch quotes, orders, and analytics.

{"workspaceId": "org-sp-enterprise"}

output.format

Control the default response format across commands (json, table, csv).

{"output": { "format": "table" }}
Reference the REST API
Pair CLI automation with direct API calls for custom integrations.
Explore full examples
See how teams embed Source Parts into dashboards, pipelines, and ERP systems.

자주 묻는 질문

롤아웃, 보안 및 일상 운영에 대한 답변입니다.

명령줄에서의 운영 우수성

Source Parts CLI로 분기가 아닌 일 단위로 소싱 자동화를 배포하세요.

CLI 문서 - Source Parts 커맨드 라인 인터페이스 | Source Parts