How sima-neat/sima-cli works
sima-cli is a command-line tool for SiMa developer workflows. A user invokes a command through the CLI, which exposes authentication, SDK setup, package installation, artifact and zoo access, and DevKit discovery and update operations. The implementation separates command entry points from domain workflows and shared configuration/API utilities. The README documents capabilities whose implementation excerpts were not supplied; those branches are represented without inferring internal call sequences. Edges are limited to documented workflows and relationships visible in the source index or excerpts.
Main entry points: cli.py Command interface · updater.py Update orchestration · metadata_installer.py Metadata installer · netboot.py Netboot workflow
Components 24
CLI and auth
- Command interface
sima_cli/cli.py - Portal login
sima_cli/auth/login.py
Packages and content
- Metadata installer
sima_cli/install/metadata_installer.py - Package registry
sima_cli/install/registry.py - Artifact downloader
sima_cli/download/downloader.py - Model Zoo
sima_cli/model_zoo/model.py - App Zoo
sima_cli/app_zoo/app.py - Neat artifacts
sima_cli/vulcan/artifacts.py
Devices and updates
- Device discovery
sima_cli/discover/discover.py - Device and MPK ops
sima_cli/deploy_only/device/commands.py - Network config
sima_cli/network/network.py - Update orchestration
sima_cli/update/updater.py - Netboot workflow
sima_cli/update/netboot.py - Remote device access
sima_cli/update/remote.py - Serial console
sima_cli/serial/serial.py - DevKit storage
sima_cli/storage/nvme.py
Developer tools
- SDK environments
sima_cli/sdk/commands.py - Playbooks
sima_cli/playbooks/manager.py
Shared services
- Credential config
sima_cli/utils/config.py - Resource config
sima_cli/utils/config_loader.py - Device APIs
sima_cli/utils/device_api.py - MPK APIs
sima_cli/utils/mpk_api.py - Artifact service
Other components
- Developer
Connections 26
- Developer → Command interface: runs commands
README.md - Command interface → Portal login: dispatches login
sima_cli/cli.py - Portal login → Credential config: stores credentials
sima_cli/auth/login.py - Command interface → Metadata installer: dispatches install
sima_cli/cli.py - Metadata installer → Artifact downloader: downloads resources
sima_cli/install/metadata_installer.py - Command interface → Package registry: manages packages
README.md - Command interface → Model Zoo: dispatches modelzoo
sima_cli/cli.py - Command interface → App Zoo: dispatches appzoo
sima_cli/cli.py - App Zoo → Artifact downloader: downloads content
sima_cli/app_zoo/app.py - Command interface → Neat artifacts: dispatches neat
README.md - Command interface → SDK environments: dispatches sdk
README.md - Command interface → Playbooks: dispatches playbooks
README.md - Command interface → Device discovery: dispatches device
README.md - Command interface → Network config: dispatches network
README.md - Command interface → Update orchestration: dispatches update
sima_cli/cli.py - Update orchestration → Remote device access: uses remote access
sima_cli/update/updater.py - Update orchestration → Netboot workflow: uses netboot artifacts
sima_cli/update/updater.py - Netboot workflow → Update orchestration: uses update helpers
sima_cli/update/netboot.py - Netboot workflow → Remote device access: uses remote access
sima_cli/update/netboot.py - Command interface → Serial console: dispatches serial
README.md - Command interface → DevKit storage: dispatches nvme
README.md - Device and MPK ops → Device APIs: uses device API
sima_cli/deploy_only/device/commands.py - Device and MPK ops → MPK APIs: uses MPK API
- Metadata installer → Artifact service: fetches metadata
- Update orchestration → Resource config: loads resources
sima_cli/update/updater.py - Command interface → Device discovery: probes devices
sima_cli/cli.py