Skip to main content

A CLI for portal image management.

Project description

Portal CLI

A command-line interface for interacting with the portal image management system.

Installation

To install the Portal CLI, use pip:

pip install portal-cli

Usage

The Portal CLI provides several commands for managing images.

Upload

Uploads a Docker image.

portal-cli upload image --image <path/to/image.tar>

Search

Searches for images.

portal-cli search by-name --name <image_name>

Scan

Scans an image for vulnerabilities.

portal-cli scan vulnerabilities --image <image:tag>

Chart

Retrieves a Helm chart.

portal-cli chart get --image-uid <image_uid> --image-version <image_version>

Transfer

Transfers an image to a registry.

portal-cli transfer to-registry --image <image:tag> --registry <registry_url>

Deploy

Deploys an image to a Kubernetes cluster.

portal-cli deploy image --image <image:tag> --namespace <namespace>

Examples

Uploading an Image

portal-cli upload image --image my_app_image.tar

Searching for an Image by Name

portal-cli search by-name --name my_app_image

Scanning an Image for Vulnerabilities

portal-cli scan vulnerabilities --image my_app_image:latest

Getting a Helm Chart

portal-cli chart get --image-uid 7LLgaAY1M2odDy8afDbWxSNqtawaPU2LMex8Hs5mD2oY1VKgzQ436W8TU5Ux --image-version v0-0-01

Transferring an Image to a Registry

portal-cli transfer to-registry --image my_app_image:latest --registry docker.example.com

Deploying an Image to a Kubernetes Namespace

portal-cli deploy image --image my_app_image:latest --namespace production

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

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

portal_cli-0.1.18.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

portal_cli-0.1.18-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file portal_cli-0.1.18.tar.gz.

File metadata

  • Download URL: portal_cli-0.1.18.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for portal_cli-0.1.18.tar.gz
Algorithm Hash digest
SHA256 fbe68e69be96228a6bb7de3667f6bfef13695c1dfab6c6b780e5a7bcfce5de79
MD5 d7bb628a7a72f9f06c7ad159eaac491a
BLAKE2b-256 ac9a1c7568b870ec880d027d08b0610aaefa7271b42f86d6e9ca6f53e6980b6f

See more details on using hashes here.

File details

Details for the file portal_cli-0.1.18-py3-none-any.whl.

File metadata

  • Download URL: portal_cli-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for portal_cli-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 96bf1c73433eeec760a996697c84442bfddd2e4aa6ffcda8d314e7f542fa7f7d
MD5 6c13e7088017b3c260cc593fff5aeeba
BLAKE2b-256 8b4b211f8e91ad511bd8d9c94784efa08e073bb6e818d93001c76916511eba02

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