Skip to main content

ngen-argoapi

ArgoCD API management CLI and wrapper package. Designed to simplify ArgoCD interactions and CI/CD integration.

Installation

pip install ngen-argoapi

Usage

Login

Login to your ArgoCD instance. This will save your credentials securely (insecure mode by default for internal instances).

argoapi login

Application Management

List all applications with sync/health status:

argoapi app list

Get application details (JSON output):

argoapi app get <application-name>

Show diff for out-of-sync resources:

argoapi app diff <application-name>
argoapi app diff <application-name> --compact
argoapi app diff <application-name> --inline

Refresh an application:

argoapi app refresh <application-name>
argoapi app refresh <application-name> --hard

Server Mode

Start the ArgoAPI server with Swagger UI:

argoapi server
argoapi server --host 0.0.0.0 --port 8899

API endpoints available at:

  • Swagger UI: http://localhost:8899/docs
  • ReDoc: http://localhost:8899/redoc
  • Health Check: http://localhost:8899/health

Health Check Endpoint

The /health endpoint returns:

{
  "status": "healthy",
  "version": "0.1.8",
  "timestamp": "2024-12-25T10:30:00.000000Z",
  "service": "argoapi",
  "argocd_connected": true,
  "token": {
    "valid": true,
    "username": "admin",
    "error": null
  }
}

Status values:

  • healthy: ArgoCD connected and token valid
  • degraded: ArgoCD connected but token invalid/expired

Environment Variables

Variable Description
ARGOAPI_VERSION Override version reported by API (optional)

Features

  • Insecure by Default: Automatically handles SSL verification for internal ArgoCD instances.
  • Token Management: Auto-renews or manages session tokens.
  • Easy CLI: Simple command structure.
  • Diff Support: View resource differences in compact or inline format.
  • Server Mode: REST API with Swagger documentation.
  • Health Check: Kubernetes-ready health check endpoint.

Release files for ngen-argoapi 0.1.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ngen-argoapi 0.1.15
File Size Uploaded
ngen_argoapi-0.1.15.tar.gz 32.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ngen-argoapi 0.1.15
File Interpreter ABI Platform
ngen_argoapi-0.1.15-py3-none-any.whl Python 3 none any Details

Total release size: 67.7 kB

Release files / ngen_argoapi-0.1.15.tar.gz

Download URL ngen_argoapi-0.1.15.tar.gz
Size 32.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ebaf5285bfa439f550d9192602554377e85084aa96c45a98648da1a555b0350f
BLAKE2b-256 checksum
How to use checksums
2d6bb62b340e02092d5582ec4a3a3c35f773a5d7ed9f0c13cfe64875e14d3a53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / ngen_argoapi-0.1.15-py3-none-any.whl

Download URL ngen_argoapi-0.1.15-py3-none-any.whl
Size 35.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33c3d3e0d5cf1c0e7e5d0557675b0d78a203d84094791c358fea1a49bf5e0857
BLAKE2b-256 checksum
How to use checksums
83a134478ddb8774afa526a32d6ad266d8c2f3dd0009cf6304482e3c4921df46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.15 This release

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page