How to run only configuration phase from command line

IntelliJ runs configure project (automatically triggered by changes on build script or by manual button click “reimport” ).
Anyway in the Build Sync window we can see that no task is executed, only configuration phase and all the gradle execution ends with “CONFIGURE SUCCESSFUL”
How to run ONLY this functionality from the command line?