Configuration¶
How repster knows which Repster Cloud endpoint to connect to, as whom, and about which project. Standard CLI pattern: global per-user credentials, per-repo non-secret pointers, env-var overrides for CI.
Resolution chain¶
Settings are resolved in priority order (highest first):
- CLI flags:
--profile,--service-url - Environment variables:
REPSTER_SERVICE_URL,REPSTER_API_TOKEN - Project config:
[tool.repster]inpyproject.toml(non-secret; safe to commit) - Global profiles:
~/.repster/config.toml(credentials; never commit this)
Global credentials: ~/.repster/config.toml¶
Written by rp login. Edit it directly if needed.
[profiles.default]
service_url = "https://repster.online"
token = "rpk_K7mXwQ3..."
[profiles.prod]
service_url = "https://repster.online"
token = "rpk_..."
Use rp login --profile <name> to add a named profile. Use --profile <name> on any cloud command to select it.
Project config: pyproject.toml¶
Your project is already a uv project, so pyproject.toml exists. By default nothing needs configuring: the project name defaults to [project].name and the profile defaults to default.
Override when needed:
[tool.repster]
project = "acme-pipelines" # defaults to [project].name
profile = "prod" # defaults to "default"
Never put tokens in pyproject.toml; use ~/.repster/config.toml or environment variables.
Environment variables¶
| Variable | Description |
|---|---|
REPSTER_SERVICE_URL |
Override the Repster Cloud URL |
REPSTER_API_TOKEN |
Override the API token (useful for CI) |
Example CI setup: