Skip to main content

CLI tool for interacting with the Netcup Webservice

Project description

Unofficial Netcup CLI

netcup.com

^^ 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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netcup_cli-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netcup_cli-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file netcup_cli-0.1.2.tar.gz.

File metadata

  • Download URL: netcup_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for netcup_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d0c3c9c2197ed7a512fb20f79712f3ac6690968545e41adf408671ed4b47e85d
MD5 63a618c1943124b6433d350e022ec0b9
BLAKE2b-256 a90b007214af83b28884f653aaa8a22d632d207f8707823ec6dfcaa4f75e791f

See more details on using hashes here.

File details

Details for the file netcup_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: netcup_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for netcup_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 db6fe8bf042f4ed2ed69e219e4c3b8edaa37bd4fec6ff2702094ca7730499b7a
MD5 2fcd92904a9f0ee88a190b554cb1ea2e
BLAKE2b-256 d948218289a7bfc16c339fd342f7909a01807030bc7eb473a8ca0a37f997b5ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page