Gitlab Migration CLI
Written and tested with node v12
To launch the command line, simply run the node application:
node .
basic usage
Once started the application search for the configuration file, if not found will ask the configuration details:
- Source url (es.
https://gitlab.sourceinstance.com
) - Source access token
- Source registry path needed to migrate containers (es.
registry.sourceinstance.com
) - Target url (es.
https://gitlab.targetinstance.com
) - Target access token
- Target registry path needed to migrate containers (es.
registry.targetinstance.com
)
Generic commands
clear
: Clear the consolei
|info
: Shows the current configurationg
|grp
|group
: Group related commands ( readGroup sub-ommands
section )h
|help
: Shows this helpp
|prg
|project
: Project related commands ( readProject commands
section )log
: Print today's logexit
: Exits the CLI
Group sub-commands
- (empty) [%filter] : Shows list of groups (filter should start with %)
h
|help
: Print this helps
|show
{id} : Shows specific group's informationm
|migrate
{id} : Try to migrate the specific groupmp
|migrateprj
{id} : Try to migrate all the project in the specific group at once
Options:
--force
: force fetch from the server instead of cache--target
: works on target gitlab instead of the source
Project sub-commands
- (empty) [%filter] : Shows list of projects (filter should start with %)
c
|containers
{id} : Shows specific project's container list (if any)h
|help
: Print this helps
|show
{id} : Shows specific project's informationm
|migrate
{id} : Try to migrate the specific projecta
|archive
{id} : Try to archive the specific project
Options:
--force
force fetch from the server instead of cache--target
works on target gitlab instead of the source