Skip to main content

Command-line interface for Polygres

Project description

Polygres CLI

The Polygres CLI manages Polygres projects from the terminal. It authenticates with the control plane and supports project setup, imports, migrations, and retrieval configuration. It does not expose database passwords.

Install

pip install polygres-cli

For an isolated global installation:

pipx install polygres-cli

The command remains polygres:

polygres login
polygres whoami
polygres projects list
polygres projects use <project-id-or-exact-name>
polygres env
polygres ready

polygres login opens the Polygres dashboard for approval and prints a URL for headless terminals. Credentials are stored at ~/.config/polygres/config.json with owner-only permissions on POSIX systems. Run polygres logout to revoke the refresh token and remove local credentials.

Common project operations:

polygres import csv ./documents.csv --table documents --wait
polygres migrations apply --file ./001_create_documents.sql
polygres graph discover --json > graph.json
polygres graph config apply --file graph.json
polygres vector configs list
polygres text configs list

Run polygres --help for the full command reference. Exit codes distinguish validation (2), authentication (3), permission (4), not found (5), conflict (6), rate limiting (7), remote availability (8), and missing local tools such as psql (9).

Relationship to the Python SDK

The CLI is distributed separately from the Python SDK. Install polygres-sdk when your application needs Runtime API retrieval methods, and install polygres-cli when you need the terminal command. The CLI has its own control-plane client and does not require the SDK.

Users of the former combined polygres package should install polygres-cli and polygres-sdk separately.

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

polygres_cli-0.1.0.tar.gz (40.4 kB view details)

Uploaded Source

Built Distribution

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

polygres_cli-0.1.0-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file polygres_cli-0.1.0.tar.gz.

File metadata

  • Download URL: polygres_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for polygres_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7572f3adbe941622a8e94e3d3536cdcc58ab9db76947b16b61ab777e8caf4264
MD5 859b1cb8c251b6831567a3957173ac09
BLAKE2b-256 d482cf7441e88527f37eb48150204cc9e1de121891d4fba54b61a724398c5cf5

See more details on using hashes here.

Provenance

The following attestation bundles were made for polygres_cli-0.1.0.tar.gz:

Publisher: publish-python-cli.yml on Evokoa/polygres-cli

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

File details

Details for the file polygres_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: polygres_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for polygres_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdd56b3e532d37268c9be101a012755db1ca9b722c7b3244723f6c8c1a4dacb8
MD5 dbbd02e6e7a6b4c5200487c308045aa0
BLAKE2b-256 0173e99fc16a168f3fd537101dfe951601df53c0ef6abe396355484c28a1e6d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for polygres_cli-0.1.0-py3-none-any.whl:

Publisher: publish-python-cli.yml on Evokoa/polygres-cli

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