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.1.tar.gz (29.5 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.1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for portainer_ctl-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6df5e7bfe9b0ec23ff0bb9b9d5ac25f92d5607da0ccad153145e30425c1a3f5b
MD5 a77af3ce373058204c96988849d5f961
BLAKE2b-256 4747baab136687e4d4f41e8f2f8c6e3d7cd238cc628753919268b7f83bc708ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for portainer_ctl-0.2.1.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.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for portainer_ctl-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09b0bcfad2962145edd0c96c711003231cf76e9073a4a3a453ebe11308f963ee
MD5 19e723b6bea6e4bba3620298f8621d98
BLAKE2b-256 9266406bca509a6bde47f4b9cc9ecd49d73ce7f7eb317b3d138f3e741cc9d362

See more details on using hashes here.

Provenance

The following attestation bundles were made for portainer_ctl-0.2.1-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