vcspull import codeberg¶
Import repositories from Codeberg.
Command¶
Import repositories from Codeberg.
Usage¶
usage: vcspull import codeberg [-h] [-w DIR] [-l LANG] [--topics TOPICS] [--min-stars N] [--archived] [--forks] [--limit N] [-f FILE] [--dry-run] [--yes] [--json] [--ndjson] [--https] [--sync] [--prune] [--prune-untracked] [--color {auto,always,never}] [--token TOKEN] [-m {user,org,search}] TARGET
Positional Arguments¶
- target TARGET¶
User, org name, or search query. For GitLab, supports subgroups with slash notation (e.g., parent/child).
Options¶
Filtering¶
Output¶
- -f, --file FILE¶
Config file to write to (default: ~/.vcspull.yaml)
- --dry-run, -n¶
Preview without writing to config file
- --yes, -y¶
Skip confirmation prompt
- --json¶
Output as JSON
- --ndjson¶
Output as NDJSON (one JSON per line)
- --https¶
Use HTTPS clone URLs instead of SSH (default: SSH)
- --sync¶
Sync config with remote: update URLs for existing entries whose URL has changed, and remove entries no longer on the remote. Preserves all metadata (options, remotes, shell_command_after). Respects pinned entries (options.pin.import).
- --prune¶
Remove config entries tagged by a previous import that are no longer on the remote. Does not update URLs for existing entries (use --sync for that). Implied by --sync. Respects pinned entries.
- --prune-untracked¶
With --sync or --prune, also remove config entries in the target workspace that lack import provenance (e.g. manually added repos). Entries imported from other sources and pinned entries are preserved. Requires --sync or --prune.
- --color¶
When to use colors (default: auto)
Authentication¶
Env vars:
CODEBERG_TOKEN(primary),GITEA_TOKEN(fallback)Token type: API token
Scope: no scopes needed for public repos; token required for private repos
Set the token:
$ export CODEBERG_TOKEN=...
Then import:
$ vcspull import codeberg myuser --workspace ~/code/