YGG CLI
Command line interface for the YGG platform.
Installation
pip install ygg-cli
Configuration
The CLI requires the YGG_API_KEY environment variable to be set. The API key must have *:*:admin:* permissions.
export YGG_API_KEY="ygg_api_..."
Note: The API base URL is always https://ygg-api.kluglabs.net and cannot be changed.
Features
List Projects and Environments
List all projects and their environments:
ygg ls
Output:
✓ proj_123 (My Project)
└─ dev (5 vars)
└─ prod (8 vars)
✓ proj_456 (Another Project)
└─ staging (3 vars)
Environment Management
Export environment as .env format:
ygg env <project_id> <env>
Example:
ygg env proj_123 dev
# Outputs:
# DATABASE_URL=postgres://...
# API_KEY=secret123
# REDIS_URL=redis://...
Import environment from stdin:
cat .env | ygg env <project_id> <env>
Example:
cat .env | ygg env proj_123 prod
You can also pipe environment variables directly:
echo "DATABASE_URL=postgres://localhost" | ygg env proj_123 dev
Database Schema Export
Export database schema in B3 format:
ygg db <project_id> <env>
Example:
ygg db proj_123 dev
# Outputs B3 schema format
Project Management
Create a new project:
ygg mkproj <project_id>
Example:
ygg mkproj my-new-project
Rename a project:
ygg mv <old_project_id> <new_project_id>
Example:
ygg mv old-project new-project
Delete a project:
ygg rm <project_id>
Example:
ygg rm proj_123
Environment Management
Create a new environment:
ygg mkenv <project_id> <env>
Example:
ygg mkenv proj_123 staging
Rename an environment:
ygg mv <project_id> <old_env> <new_env>
Example:
ygg mv proj_123 dev development
Delete an environment:
ygg rm <project_id> <env>
Example:
ygg rm proj_123 staging
Requirements
- Python 3.7+
requestslibrary (installed automatically withygg-cli)
Notes
- All computations are done in the YGG server. The Python CLI is a thin client that makes HTTP requests.
- The API key must have
*:*:admin:*permissions to work. - The key only works for a specific account.
Learn More
Visit ygg.kluglabs.net for more information about the YGG platform.
Metadata
Release files for ygg-cli 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ygg_cli-0.1.5.tar.gz | 7.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ygg_cli-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.9 kB
Release files / ygg_cli-0.1.5.tar.gz
| Download URL | ygg_cli-0.1.5.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3338c8c7c31abf0ae4cd00457f65c90f9eefc884c12fd6e1693275e8941dd025
|
|
BLAKE2b-256 checksum How to use checksums |
08e50562d6f805999e342f7e4db155e93bdd1858e344936f2d2c0029cb615a9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / ygg_cli-0.1.5-py3-none-any.whl
| Download URL | ygg_cli-0.1.5-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a8c479b999376ab937299063272a014e6bee0ca83c92fa2f5eaada83d5dad73
|
|
BLAKE2b-256 checksum How to use checksums |
bc0e4d0d42b569e40a93533fe5dfb4ed6b69f91e56898fc3b3ee19de6664729d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for ygg-cli 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.