How maxsander123/netcup-cli works
netcup-cli is a command-line client for Netcup’s Server Control Panel (SCP) and Customer Control Panel (CCP) DNS APIs. Users invoke commands to authenticate, inspect or manage servers, and work with CCP DNS; command handlers send requests to the relevant API and format results, with asynchronous SCP tasks optionally polled for completion. The map separates SCP operations, CCP DNS modes, and shared runtime services. Relationships are limited to those shown in excerpts, the source index, or README; unsampled command behavior is represented at subsystem level.
Main entry points: cli.py Command router · client.py SCP API client · dns.py DNS command routing · tasks.py Async tasks
Components 19
CLI and presentation
- Command router
src/netcup_cli/cli.py - Output and task wait
src/netcup_cli/output.py
SCP operations
- Server and snapshots
src/netcup_cli/commands/servers.py - OS images and install
src/netcup_cli/commands/images.py - Networking and rDNS
src/netcup_cli/commands/networking.py - Users and resources
src/netcup_cli/commands/users.py - Async tasks
src/netcup_cli/commands/tasks.py - Disks and metrics
src/netcup_cli/commands
CCP DNS
- CCP credentials
src/netcup_cli/ccp_config.py - DNS command routing
src/netcup_cli/commands/dns.py - Legacy DNS
src/netcup_cli/legacy_dns.py - CloudDNS REST
src/netcup_cli/netcup_dns_api.py - Dynamic DNS
src/netcup_cli/ddns.py
Shared runtime
- SCP authentication
src/netcup_cli/auth.py - SCP credentials
src/netcup_cli/config.py - SCP API client
src/netcup_cli/client.py
Other components
- CLI user
- SCP REST API
- CCP DNS APIs
Connections 30
- CLI user → Command router: invokes
README.md - Command router → Output and task wait: formats results
src/netcup_cli/cli.py - Command router → Server and snapshots: routes commands
src/netcup_cli/cli.py - Command router → OS images and install: routes commands
src/netcup_cli/cli.py - Command router → Networking and rDNS: routes commands
src/netcup_cli/cli.py - Command router → Users and resources: routes commands
src/netcup_cli/cli.py - Command router → Async tasks: routes commands
src/netcup_cli/cli.py - Command router → Disks and metrics: routes commands
src/netcup_cli/cli.py - Command router → DNS command routing: routes commands
src/netcup_cli/cli.py - Server and snapshots → SCP API client: builds client
src/netcup_cli/commands/servers.py - OS images and install → SCP API client: builds client
src/netcup_cli/commands/images.py - Networking and rDNS → SCP API client: builds client
src/netcup_cli/commands/networking.py - Users and resources → SCP API client: builds client
src/netcup_cli/commands/users.py - Async tasks → SCP API client: builds client
src/netcup_cli/commands/tasks.py - Disks and metrics → SCP API client: uses client
src/netcup_cli/commands/tasks.py - SCP API client → SCP authentication: refreshes token
src/netcup_cli/client.py - SCP API client → SCP credentials: loads credentials
src/netcup_cli/client.py - SCP authentication → SCP credentials: uses settings
src/netcup_cli/auth.py - SCP API client → SCP REST API: sends requests
src/netcup_cli/client.py - SCP authentication → SCP REST API: authenticates
src/netcup_cli/auth.py - Async tasks → Output and task wait: prints results
src/netcup_cli/commands/tasks.py - Output and task wait → SCP API client: polls tasks
src/netcup_cli/output.py - DNS command routing → CCP credentials: loads credentials
src/netcup_cli/commands/dns.py - DNS command routing → Legacy DNS: calls legacy API
src/netcup_cli/commands/dns.py - DNS command routing → CloudDNS REST: calls REST API
src/netcup_cli/commands/dns.py - DNS command routing → Dynamic DNS: uses DDNS
src/netcup_cli/commands/dns.py - Legacy DNS → CCP credentials: uses credentials
src/netcup_cli/legacy_dns.py - Legacy DNS → CCP DNS APIs: sends requests
- CloudDNS REST → CCP DNS APIs: sends requests
- Dynamic DNS → CCP DNS APIs: updates records