O'Reilly logo

GateIn Cookbook by Piergiorgio Lucidi, Luca Stancapiano, Ken Finnigan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exporting a portal page with the CLI

In this recipe, we will export the sitemap page managed resource from the portal using the CLI.

Getting ready

The following are required for this recipe:

  • GateIn-3.2.0.Final
  • Deploying the CLI to GateIn recipe from this chapter to have been completed

How to do it...

To export the sitemap page from the portal:

  1. Start the server.
  2. Open an SSH connection to the CLI by entering the following command:
    > ssh -p 2000 root@localhost
    
  3. Enter the password for root when requested. With the standard GateIn install, the password is gtn.
  4. At the shell prompt, enter the following:
    > mgmt connect
    
  5. Enter the password for root user again.
  6. At the shell prompt, enter the following:
    > export --file /tmp --filter site-name:classic;page-name:sitemap;nav-uri:sitemap ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required