Unofficial Netcup CLI
^^ Click to support me AND redeem a netcup DISCOUNT VOUCHER on www.mihnea.dev
A simple CLI tool for interacting with the Netcup Webservice (based on netcup_webservice)
Installation
You can install the CLI tool using pip:
pip install netcup-cli
Usage
1. Setup Login Credentials
Before using any of the commands, you need to log in and save your credentials.
netcup-cli login
If you don't provide the --user and --password arguments, the CLI will prompt you to input them.
2. Available Commands
Get Commands
Use the get command to retrieve information from the Netcup Webservice. Available resources:
vservers: Get the list of all vServers.vserver_nickname: Get the nickname of a specific vServer.vserver_state: Get the state of a specific vServer (running, stopped, etc.).vserver_uptime: Get the uptime of a specific vServer.vserver_update_notification: Get the update notifications for a specific vServer.vserver_stat_token: Get the stat token for a specific vServer.vserver_traffic_of_day: Get the daily traffic usage for a specific vServer.vserver_traffic_of_month: Get the monthly traffic usage for a specific vServer.vserver_information: Get detailed information for a specific vServer.vserver_ips: Get the IPs assigned to a specific vServer.
Example usage:
# Get the list of all vServers
netcup-cli get vservers
# Get the state of a specific vServer
netcup-cli get vserver_state --vserver_name YOUR_VSERVER_NAME
Set Commands
Use the set command to update information in the Netcup Webservice. Available resources:
vserver_nickname: Set a new nickname for a specific vServer.password: Change the user password.panel_settings: Update panel settings.
Example usage:
# Set a new nickname for a specific vServer
netcup-cli set vserver_nickname --vserver_name YOUR_VSERVER_NAME --nickname NEW_NICKNAME
# Change the user password
netcup-cli set password --new_password NEW_PASSWORD
Start/Stop/Poweroff Commands You can manage the state of your vServers using the following commands:
# Start a specific vServer
netcup-cli start --vserver_name YOUR_VSERVER_NAME
# Stop a specific vServer
netcup-cli stop --vserver_name YOUR_VSERVER_NAME
# Power off a specific vServer
netcup-cli poweroff --vserver_name YOUR_VSERVER_NAME
Project Commands You can organize vServers into projects stored locally in a SQLite database.
# Create a project
netcup-cli project create myproject
# Add all servers with a nickname matching 'web-' to the project
netcup-cli project add --project myproject --nick '^web-'
# List projects and assigned servers
netcup-cli project list
Disclaimer
This package is not affiliated with, endorsed, or sponsored by Netcup GmbH. It is an independent project and is maintained solely by its contributors.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for netcup-cli 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netcup_cli-0.1.4.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netcup_cli-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 kB
Release files / netcup_cli-0.1.4.tar.gz
| Download URL | netcup_cli-0.1.4.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e79134fae9b9e3c5c85158b7c8c3e4380f3cc4cc6692a91d6ddcec8e3b99547
|
|
BLAKE2b-256 checksum How to use checksums |
1144ffc3df2be822649fb650dd99e31587fee3b68e3d42cdbdedf0c51fa726e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.23
|
Release files / netcup_cli-0.1.4-py3-none-any.whl
| Download URL | netcup_cli-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2cdf3ecb9643870c32ba688bfba27a7527acbc168274e665de8889897a5810c
|
|
BLAKE2b-256 checksum How to use checksums |
86085e35661ba3b88fa8987e06d22e7d51d4ef5d18d686123dd4744937b0faa6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.23
|