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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6df5e7bfe9b0ec23ff0bb9b9d5ac25f92d5607da0ccad153145e30425c1a3f5b
|
|
| MD5 |
a77af3ce373058204c96988849d5f961
|
|
| BLAKE2b-256 |
4747baab136687e4d4f41e8f2f8c6e3d7cd238cc628753919268b7f83bc708ca
|
Provenance
The following attestation bundles were made for portainer_ctl-0.2.1.tar.gz:
Publisher:
ci.yml on hnaderi/portainer-ctl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
portainer_ctl-0.2.1.tar.gz -
Subject digest:
6df5e7bfe9b0ec23ff0bb9b9d5ac25f92d5607da0ccad153145e30425c1a3f5b - Sigstore transparency entry: 280878407
- Sigstore integration time:
-
Permalink:
hnaderi/portainer-ctl@3c4ab8cafb7e85a26af7c9c2337b5dd6789bf29d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/hnaderi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@3c4ab8cafb7e85a26af7c9c2337b5dd6789bf29d -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09b0bcfad2962145edd0c96c711003231cf76e9073a4a3a453ebe11308f963ee
|
|
| MD5 |
19e723b6bea6e4bba3620298f8621d98
|
|
| BLAKE2b-256 |
9266406bca509a6bde47f4b9cc9ecd49d73ce7f7eb317b3d138f3e741cc9d362
|
Provenance
The following attestation bundles were made for portainer_ctl-0.2.1-py3-none-any.whl:
Publisher:
ci.yml on hnaderi/portainer-ctl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
portainer_ctl-0.2.1-py3-none-any.whl -
Subject digest:
09b0bcfad2962145edd0c96c711003231cf76e9073a4a3a453ebe11308f963ee - Sigstore transparency entry: 280878419
- Sigstore integration time:
-
Permalink:
hnaderi/portainer-ctl@3c4ab8cafb7e85a26af7c9c2337b5dd6789bf29d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/hnaderi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@3c4ab8cafb7e85a26af7c9c2337b5dd6789bf29d -
Trigger Event:
push
-
Statement type: