How Do You Access the Maas Cli?

How Do You Access the Maas Cli?

How do you access the MAAS CLI after new/fresh installation?

1 Answer

  1. After you install MAAS, you must populate it with an admin account.

    maas createadmin --username=${MAAS_USER} --password=${MAAS_PASSWORD} --email=${MAAS_EMAIL}


  1. Put the MAAS admin password in a read-only hidden file. (Your security requirements for password management may differ...)

    echo ${MAAS_PASSWORD} >| /root/.maas ; chmod 600 /root/.maas


  1. Login to MAAS.

    maas login ${MAAS_USER} - < /root/.maas


  1. Run a command to test. For example:

    maas ${MAAS_USER} fabrics read

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.