hi,
yes, the CLI is based on the procurve command syntax.
To reset the config to factory defaults use the command erase startup-config
Please note that the password and username are not part of the config by default. You need additional command to reset the password and username in config mode.
no password all
HTH