divekit members exclude
Exclude members from a distribution before distributing
Synopsis
Exclude configured members from a distribution before creating repositories.
The command writes a new members file with the excluded users removed, preserves UUIDs for all remaining groups, drops empty groups, and updates the distribution config to point at the new file.
Input Sources
Arguments:
Provide one or more usernames as positional arguments.
File:
Use --members-file to read usernames to exclude from a file.
Stdin:
Pipe usernames into the command.
Usage
divekit members exclude [member...] [flags]
Examples
# Exclude two users from the next distribution
divekit members exclude -d ST2M4 alice bob
# Exclude users listed in a file
divekit members exclude -d ST2M4 --members-file excluded.txt
# Preview exclusions without changing config.json or members files
divekit members exclude -d ST2M4 --members-file excluded.txt --dry-run
Flags
--dry-run Preview excluded members without writing a new members file
--members-file string Path to a file with member names to exclude (one per line)
-r, --remote string Remote repository URL (e.g. GitLab instance)
-t, --token string GitLab token or token file path (file:///...)
Inherited Flags
-d, --distribution string Distribution name (required or prompted)
-l, --loglevel string log level (debug, info, warn, error, fatal) (default "info")
--no-index skip project index update
--non-interactive run in non-interactive mode (fails if interactive input is required)
-y, --yes assume yes/default for all prompts (non-interactive with automatic defaults)