สร้างเร็วขึ้นด้วย Source Parts CLI

ติดตั้ง รับรองความถูกต้อง และทำเวิร์กโฟลว์การจัดซื้อทั้งหมดของคุณให้อัตโนมัติด้วยชุดเครื่องมือบรรทัดคำสั่งที่เน้นคอมโพเนนต์ของเรา

01

ติดตั้ง CLI สำหรับสภาพแวดล้อมของคุณ

ใช้คำสั่งเดียวเพื่อติดตั้งบน macOS, Linux หรือ Windows และรับรองความถูกต้องกับ Source Parts

macOSLinuxWindows
$ curl -fsSL https://source.parts/cli/install.sh | bash
copy

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

02

รับรองความถูกต้องในไม่กี่นาที

บังคับใช้มาตรฐานความปลอดภัยเดียวกันที่ใช้ในแพลตฟอร์ม Source Parts

$ parts auth login
copy

สร้างคีย์ API ที่มีขอบเขต

ออกคีย์ต่อสภาพแวดล้อมพร้อมสิทธิ์ตามบทบาทและการหมดอายุอัตโนมัติ

กำหนดขอบเขตที่มีสิทธิ์น้อยที่สุด

แมปโปรไฟล์ CLI กับบทบาท Source Parts เพื่อควบคุมการเข้าถึงการอ่าน เขียน และอนุมัติ

ทำการหมุนคีย์อัตโนมัติ

หมุนข้อมูลรับรองตามกำหนดการโดยใช้คำสั่งการต่ออายุในตัวและการเตือนนโยบาย

Don't have an API key? Create one in your dashboard

03

อ้างอิงคำสั่ง

สำรวจกลุ่มคำสั่งหลักที่ขับเคลื่อนเวิร์กโฟลว์การจัดซื้อ การเสนอราคา และการปฏิบัติตาม

การค้นหาและข่าวกรอง

สอบถามคอมโพเนนต์หลายล้านชิ้น วิเคราะห์ความเสี่ยงของวงจรชีวิต และส่งออกภาพรวมราคา

components search

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

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

inventory availability

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

$ parts inventory availability --sku 100-443-ESP32 --region us
copy

components lifecycle

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

$ parts components lifecycle --mpn ESP32-C3
copy

ใบเสนอราคาและการค้า

ทำการเสนอราคา การอัปโหลด BOM และเวิร์กโฟลว์ใบสั่งซื้อให้อัตโนมัติ

quotes create

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

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

orders submit

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

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

fulfillment track

Monitor fulfillment milestones, logistics updates, and delivery ETA.

$ parts fulfillment track --order SO-55821
copy

การทำงานอัตโนมัติและการผสานรวม

เชื่อมต่อ CLI กับไปป์ไลน์ CI ตัวกำหนดเวลา และระบบปลายทาง

automation workflows run

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

$ parts automation workflows run nightly-replenishment
copy

integrations sync

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

$ parts integrations sync --target erp
copy

audit log export

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

$ parts audit log export --since 7d --format csv
copy
04

สูตรการทำงานอัตโนมัติ

เริ่มต้นเวิร์กโฟลว์ของคุณด้วยตัวอย่างที่พร้อมใช้งานซึ่งคุณสามารถปรับให้เข้ากับสภาพแวดล้อมของคุณได้

Sync BOM alternates

Update engineering alternates nightly and persist results to your PLM.

parts quotes bom-sync --project ${PROJECT_ID} | plmctl import --workspace hardware
copy

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
copy

Gate releases in CI

Fail builds when BOM risk exceeds tolerance before merging to main.

parts automation evaluate --workflow ci-bom-check || exit 1
copy
05

กำหนดค่าครั้งเดียว ใช้ซ้ำได้ทุกที่

โปรไฟล์ช่วยให้ทีมแชร์การเชื่อมต่อพร้อมทั้งรักษาความลับให้ปลอดภัย

output.format

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

{"output": { "format": "table" }}
copy

profile

Named profile used to scope credentials and default workspace settings.

{"default": "production"}
copy

workspaceId

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

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

คำถามที่พบบ่อย

คำตอบสำหรับการนำออกใช้ ความปลอดภัย และการดำเนินงานประจำวัน

How quickly can we adopt the CLI?

Most teams install, configure profiles, and automate their first workflow within a single sprint.

Can we manage multiple environments?

Yes. Profiles isolate credentials for sandbox, staging, and production environments with a single config file.

Do CLI commands count against API rate limits?

CLI traffic honors the same rate limits as direct API usage and surfaces headers for monitoring.

Where do we get help if something fails?

Use the support portal for tickets or escalate via Slack channels included with paid plans.

GitHubOpen API referenceSupport
Source Parts© 2026 Source Parts Inc.
New York · Amsterdam · Shenzhen
AboutContactDocsPrivacyTerms
เอกสาร CLI - อินเทอร์เฟซบรรทัดคำสั่ง Source Parts | Source Parts