Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Is it possible to pass admin password while installing aem instance through terminal ?

Avatar

Community Advisor

Hi,

 

When we install AEM instance through terminal with the help of  java -jar aem-author-p4502.jar commandit asked for admin password as shown in below screenshot

MayurSatav_0-1669278465230.png

I am working on one automation and wanted to know is there any way to pass this password along with java -jar aem-author-p4502.jar command. So that we don't have to enter it later? It will directly take it from argument we passed with command.

 

Thanks

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @MayurSatav ,

Yes, that's possible using the -nointeractive Flag.

  • Upon running the instance from the command line, you will be presented with the option to change the admin password during the installation process:

    SantoshSai_0-1669301410465.png
  • You can also choose to specify the password from a properties file. This is done by using the -nointeractive flag combined with the -Dadmin.password.file system property.

    Below is an example:

    java -Dadmin.password.file =/path/to/passwordfile.properties -jar aem6.3.jar -nointeractive
    

    The password inside the passwordfile.properties file needs to have the below format:

    admin.password = 12345678
    
    NOTE:

    If you simply use the -nointeractive parameter without the -Dadmin.password.file system property, AEM will use the default admin password without asking you to change it, essentially replicating behaviour from earlier versions. This non interactive mode can be used for automated installations using the command line in an installation script.

    For more details please refer: https://experienceleague.adobe.com/docs/experience-manager-64/administering/security/security-config...

Hope that helps!

Regards,
Santosh

View solution in original post

3 Replies

Avatar

Employee Advisor

hi @MayurSatav , Currently there are not any parameters which you can provide to pass username and password using command prompt

 

Set up Local AEM Runtime for AEM as a Cloud Service Development | Adobe Experience Manager

Avatar

Correct answer by
Community Advisor

Hi @MayurSatav ,

Yes, that's possible using the -nointeractive Flag.

  • Upon running the instance from the command line, you will be presented with the option to change the admin password during the installation process:

    SantoshSai_0-1669301410465.png
  • You can also choose to specify the password from a properties file. This is done by using the -nointeractive flag combined with the -Dadmin.password.file system property.

    Below is an example:

    java -Dadmin.password.file =/path/to/passwordfile.properties -jar aem6.3.jar -nointeractive
    

    The password inside the passwordfile.properties file needs to have the below format:

    admin.password = 12345678
    
    NOTE:

    If you simply use the -nointeractive parameter without the -Dadmin.password.file system property, AEM will use the default admin password without asking you to change it, essentially replicating behaviour from earlier versions. This non interactive mode can be used for automated installations using the command line in an installation script.

    For more details please refer: https://experienceleague.adobe.com/docs/experience-manager-64/administering/security/security-config...

Hope that helps!

Regards,
Santosh