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
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7572f3adbe941622a8e94e3d3536cdcc58ab9db76947b16b61ab777e8caf4264
|
|
| MD5 |
859b1cb8c251b6831567a3957173ac09
|
|
| BLAKE2b-256 |
d482cf7441e88527f37eb48150204cc9e1de121891d4fba54b61a724398c5cf5
|
Provenance
The following attestation bundles were made for polygres_cli-0.1.0.tar.gz:
Publisher:
publish-python-cli.yml on Evokoa/polygres-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polygres_cli-0.1.0.tar.gz -
Subject digest:
7572f3adbe941622a8e94e3d3536cdcc58ab9db76947b16b61ab777e8caf4264 - Sigstore transparency entry: 2135733528
- Sigstore integration time:
-
Permalink:
Evokoa/polygres-cli@8c85a003b962d467bd9cd9782311779ea7764d4f -
Branch / Tag:
refs/tags/python-cli-v0.1.0 - Owner: https://github.com/Evokoa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-cli.yml@8c85a003b962d467bd9cd9782311779ea7764d4f -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdd56b3e532d37268c9be101a012755db1ca9b722c7b3244723f6c8c1a4dacb8
|
|
| MD5 |
dbbd02e6e7a6b4c5200487c308045aa0
|
|
| BLAKE2b-256 |
0173e99fc16a168f3fd537101dfe951601df53c0ef6abe396355484c28a1e6d2
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polygres_cli-0.1.0-py3-none-any.whl -
Subject digest:
bdd56b3e532d37268c9be101a012755db1ca9b722c7b3244723f6c8c1a4dacb8 - Sigstore transparency entry: 2135733592
- Sigstore integration time:
-
Permalink:
Evokoa/polygres-cli@8c85a003b962d467bd9cd9782311779ea7764d4f -
Branch / Tag:
refs/tags/python-cli-v0.1.0 - Owner: https://github.com/Evokoa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-cli.yml@8c85a003b962d467bd9cd9782311779ea7764d4f -
Trigger Event:
push
-
Statement type: