Enter the cli:

user@host% cli

Enter the configuration:

user@host> configure

Get the hardware information:

user@host# cli show chassis hardware

Get the software version:

user@host# cli show version

More info here

Dump the configuration to a file:

ssh root@DEVICE "cli show config" > saved_config

Show config changes before commit:

show | compare