grekt config
Manage project configuration.
bash
grekt config <subcommand>Subcommands
| Command | Description |
|---|---|
list | Show config |
set <key> <value> | Set value |
get <key> | Get value |
registry set [scope] | Configure registry for a scope |
registry unset [scope] | Remove registry for a scope |
token set [scope] | Add token for a git host, or update token for a registry scope (@scope) |
token unset [host] | Remove token for a git host |
Keys
| Key | Description |
|---|---|
registry | Custom registry URL |
Use grekt add-target to configure sync targets interactively.
Examples
bash
# Basic config
grekt config list
grekt config set registry https://my-registry.com
grekt config get registry
# Registry backends for scoped artifacts
grekt config registry set @myteam
grekt config registry unset @myteam
# Git source tokens (github:, gitlab:)
grekt config token set
grekt config token unset github
# Update token for a registry scope
grekt config token set @myteamRegistry configuration
Configure custom registries for scoped artifacts:
bash
grekt config registry set @myteamThis starts an interactive flow to configure:
- Registry type (GitHub, GitLab)
- Repository or project path
- Authentication token (optional)
Configuration is stored in .grekt/config.yaml.
Token configuration
Configure tokens for private git sources:
bash
grekt config token setOr update the token for an existing registry scope:
bash
grekt config token set @myteamWhen called with @scope, it updates the token in the existing registry entry (configured with grekt config registry set).
When called without arguments, tokens are used for github: or gitlab: sources. Priority:
- Token in
.grekt/config.yaml - Environment variable (
GITHUB_TOKEN,GITLAB_TOKEN)