Skip to main content

A poor man's kubectl for docker swarm

Project description

Portainer controller

Install

This project is published to PyPi and you can install it using pip:

pip install portainer-ctl

You can also use the published container images:

docker pull hnaderi/pctl
# or
docker pull ghcr.io/hnaderi/pctl

Features

  • Fully automated deployment
  • Support for multiple config and secret
  • Support for .env files and multiple variables
  • Support for api tokens introduced in portainer 2.11.0

Usage

Usage: pctl [-h] [-T API_TOKEN] [-H HOST] [-U USERNAME] [-P PASSWORD] [--debug] [-j] {deploy,stacks,configs,secrets,endpoints,tags,system} ...

Poorman's kubectl, CLI for portainer on docker swarm

Options:
  -h, --help            show this help message and exit
  -T, --api-token API_TOKEN
                        api token for user, overrides PORTAINER_TOKEN variable (default: None)
  -H, --host HOST       portainer host, overrides PORTAINER_HOST variable (default: http://127.0.0.1:9000/api)
  -U, --username USERNAME
                        username to login, overrides PORTAINER_USERNAME variable (default: admin)
  -P, --password PASSWORD
                        password for user, overrides PORTAINER_PASSWORD variable (default: admin)
  --debug               Whether or not print debugging logs (default: False)
  -j, --json            Print json output (default: False)

Commands:
  {deploy,stacks,configs,secrets,endpoints,tags,system}

No budget. No vendors. No fleet of ops. Just you, a blinking cursor, and the will to script what others buy. The rich scale with dollars. You scale with shell. Excuses cost, Automation pays!

You can provide host, username and password in environment:

  • PORTAINER_HOST
  • PORTAINER_USERNAME
  • PORTAINER_PASSWORD
  • PORTAINER_TOKEN

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

portainer_ctl-0.2.2.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

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

portainer_ctl-0.2.2-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file portainer_ctl-0.2.2.tar.gz.

File metadata

  • Download URL: portainer_ctl-0.2.2.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for portainer_ctl-0.2.2.tar.gz
Algorithm Hash digest
SHA256 364405e5ead9e6fd1591dac52e76ab587b2cf80dfb0a44923483dacaf70bf5a8
MD5 dc79d19b56b16fe0c37a3262439cbb29
BLAKE2b-256 61d0f552be9dd3d4158129eb7fb1119be769efda3c3e5c290f60125ae424f0a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for portainer_ctl-0.2.2.tar.gz:

Publisher: ci.yml on hnaderi/portainer-ctl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file portainer_ctl-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: portainer_ctl-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for portainer_ctl-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 617a4422fe9a6f298e2d978ea6199428f3b7849232e6041342d667993c23a153
MD5 b4dae5bfd1c58337a06219507c83fcf2
BLAKE2b-256 149f550e5f0fbd75cd88fe37ca971a980829513633c8236534e1304fe560a3bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for portainer_ctl-0.2.2-py3-none-any.whl:

Publisher: ci.yml on hnaderi/portainer-ctl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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