GitLab API
GLab
GLab - Reference - glab repo list
USAGE
glab repo list [flags]
ALIASES
ls
FLAGS
-a, --all List all projects on the instance.
--archived Limit by archived status. Use 'false' to exclude archived repositories. Used with the '--group' flag.
-g, --group string Return repositories in only the given group.
-G, --include-subgroups Include projects in subgroups of this group. Default is false. Used with the '--group' flag.
--member List only projects of which you are a member.
-m, --mine List only projects you own. Default if no filters are provided.
-o, --order string Return repositories ordered by id, created_at, or other fields. (default "last_activity_at")
-F, --output string Format output as: text, json. (default "text")
-p, --page int Page number. (default 1)
-P, --per-page int Number of items to list per page. (default 30)
-s, --sort string Return repositories sorted in asc or desc order.
--starred List only starred projects.
-u, --user string List user projects.GLab - List all repos paginated with 100 items per page
glab repo list -P 100GLab - Sort by the specified field
-o, --order
Available values:
id, name, path, created_at, updated_at, last_activity_at, similarity, star_count, storage_size, repository_size, wiki_size, packages_size
Default value : last_activity_at
# Note: doesn't seem to work
glab repo ls -s asc -o nameGLab - Create new repo
# Use the name of current directory as repo name
glab repo create --group $group_id