Skip to main content

CoreCLI (cor)

PyPI Python

CLI interna (Project COR): autenticación Cognito (PKCE), API GraphQL y utilidades como reglas SSH en security groups.

Requisitos: Python 3.9+


Instalación

pip install corclient

Homebrew (macOS/Linux):

brew tap ProjectCORTeam/corcli https://github.com/ProjectCORTeam/corcli.git
brew install corclient

Actualizar: pip install -U corclient o brew update && brew upgrade corclient

Desarrollo: git clone … && cd corcli && pip install -e ".[dev]"


Autocompletado

cor --install-completion

(Reinicia la terminal o recarga tu ~/.zshrc / ~/.bashrc.)


Login

Opcional — endpoint GraphQL (por defecto: https://api.cor-dev.com/graphql):

export COR_GRAPHQL_URL="https://api.cor-dev.com/graphql"
cor login          # navegador + PKCE; guarda tokens
cor whoami         # usuario, expiración, grupos Cognito
cor refresh        # refresco manual (el CLI también lo hace solo)
cor logout

Redirección custom: cor login --app-redirect "myapp://callback"


SSH: actualizar tu IP en los security groups

Abre TCP/22 en los SG etiquetados (por defecto tag CORManagedSSH=corcli) en las cuentas main, prod y staging definidas en el código.

cor ssh access-update

Por defecto usa tu IPv4 pública y como descripción de la regla el email de la sesión.

Opción Descripción
-y / --yes Sin confirmación (obligatorio sin TTY)
-t / --tag Tag clave=valor (default: CORManagedSSH=corcli)
-r / --region Región EC2 para todas las cuentas
--ip IPv4 fija (/32 opcional) — solo grupos Cognito autorizados
-d / --description Texto de la regla en el SG — solo grupos autorizados

Región por entorno (sin flag): export COR_SSH_ACCESS_EC2_REGION=us-east-2

Nota: --ip y --description están restringidos; si no tienes permiso, usa el flujo por defecto o contacta a administración.


Repo y soporte


Project COR Team

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

corclient-1.4.0.tar.gz (42.4 kB view details)

Uploaded Source

Built Distribution

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

corclient-1.4.0-py3-none-any.whl (41.6 kB view details)

Uploaded Python 3

File details

Details for the file corclient-1.4.0.tar.gz.

File metadata

  • Download URL: corclient-1.4.0.tar.gz
  • Upload date:
  • Size: 42.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for corclient-1.4.0.tar.gz
Algorithm Hash digest
SHA256 24e9a1e200c5300a764a4d917126cd5dc651ba139f04d1e221599fd79e703930
MD5 8157bf407bb516b3d39062e95d3b5ee2
BLAKE2b-256 542b3f7bc76be8d7e7e3475110d4a212348b6f81030d15d1c3746d35ff7f5179

See more details on using hashes here.

Provenance

The following attestation bundles were made for corclient-1.4.0.tar.gz:

Publisher: pypi-release.yaml on ProjectCORTeam/corcli

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

File details

Details for the file corclient-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: corclient-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 41.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for corclient-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2235b418d10fe06b2d2fddc3adb806c0c51e541913f49e03c47760bf86b61da1
MD5 56878529f064de5ca40d260297b4bcd6
BLAKE2b-256 291017b7feedc3cd628e53af8c5ca72ef343d5a71ff4d6acfe63a9defd2e47e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for corclient-1.4.0-py3-none-any.whl:

Publisher: pypi-release.yaml on ProjectCORTeam/corcli

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

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 files

1.3.1

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

0.1.0

2 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