Skip to content

TRXO Usage Guide

This guide outlines the standard workflow for managing Ping Identity configurations.

1. Project Workflow

Start by creating a dedicated workspace for your specific migration or environment task.

Create a Project:

trxo project create my-migration-project

List Projects:

trxo projects

Switch Context:

trxo project switch my-migration-project

2. Configuration

Initialize your project configuration for Authentication and Storage.

trxo config setup
* For detailed Authentication options, see Project Setup & Auth Guide. * For detailed Storage Mode setup (Local vs Git), see Storage Setup Guide.

View Current Configuration:

trxo config show
# displays current configuration


3. Export Commands

Export configurations from your source environment.

Basic Export

# Export all scripts from the default realm (alpha)
trxo export scripts

TRXO Export Scripts Exporting AM scripts to local storage

General Options

Specific Realm: Export from a non-default realm (e.g., 'bravo' or root).

trxo export scripts --realm bravo

View Data (Dry Run): Preview data in the terminal without saving to file.

trxo export realms --view

TRXO Export Realms View Previewing realm configuration in the terminal

View Specific Columns: Restrict the view output to specific fields (e.g., just IDs and Names).

trxo export realms --view --view-columns _id,name

Local Storage Options (Filesystem Only)

Custom Directory: Save export files to a specific directory. Creates the directory if it doesn't exist.

trxo export journeys --dir journeys-export

Custom Filename: Save to a specific manual filename.

trxo export journeys --file new-journeys

Specific Version: Tag the export file with a semantic version.

trxo export journeys --version prod-ready

Git Storage Options (Git Mode Only)

Branch: Export to a specific branch. If the branch exists, it adds/updates files; if not, it creates the branch.

trxo export oauth --branch bravo-oauth2-clients

Commit Message: Provide a custom commit message describing the export.

trxo export oauth --branch bravo-oauth2-clients --message "Exporting OAuth2 Clients from tenant"

CI/CD & Automation

Run exports without interactive prompts or project setup by passing credentials directly.

PingOne Advanced Identity Cloud (Service Account):

trxo export scripts \
  --jwk-path /path/to/private.key \
  --client-id service-account-client-id \
  --sa-id service-account-uuid \
  --base-url https://<tenant>.forgeblocks.com

PingAM (On-Premise):

trxo export scripts \
  --auth-mode onprem \
  --base-url https://am.example.com/am \
  --onprem-username amAdmin \
  --onprem-password SecurityPhrase1!


4. Import Commands

Import configurations into your target environment. Options vary based on Local or Git storage mode.

View Available Commands:

trxo import --help

Local File System

Import configuration files from your local directory.

Standard Import: Imports from local file to default realm (alpha).

trxo import authn --file <file-name>

TRXO Import Authentication Importing authentication configuration from a file

Specific Realm: Import file content to a specific target realm.

trxo import authn --file <file-name> --realm <realm-name>

Cherry-Pick: Import only specific items (single ID or comma-separated list).

trxo import scripts --file <file-name> --cherry-pick id1,id2

Diff Mode: Compare the import file against the target environment before applying changes.

trxo import scripts --file <file-name> --diff

Sync Mode: Mirror the import data to the target (deletes extra items on server).

trxo import scripts --file <file-name> --sync

Force Import: Skip hash integrity checks if file was manually modified.

trxo import scripts --file <file-name> --force-import

Git Mode

Import configurations directly from the linked Git repository.

Default Branch: Takes data from the currently checked-out branch.

trxo import scripts

Specific Branch: Import data from a specific branch.

trxo import scripts --branch <branch-name>

Rollback: Automatically restore previous state if import fails (Git mode only).

trxo import scripts --rollback

CI/CD & Automation

PingOne Advanced Identity Cloud:

trxo import scripts --file <file-name> \
  --jwk-path /path/to/private.key \
  --client-id service-account-client-id \
  --sa-id service-account-uuid \
  --base-url https://<tenant>.forgeblocks.com

PingAM (On-Premise):

trxo import scripts --file <file-name> \
  --auth-mode onprem \
  --base-url https://am.example.com/am \
  --onprem-username amAdmin \
  --onprem-password SecurityPhrase1!

For more detailed explanations, see Advanced Features Guide.


5. Batch Operations

Execute multiple configuration commands in a single operation.

View Available Commands:

trxo batch --help

Batch Export

Export All: Runs the export for all supported commands.

trxo batch export --all

Selected Commands: Export specific configuration types in one shot.

trxo batch export authn services

TRXO Batch Export Executing multiple export commands in batch mode

Error Handling: Pause execution immediately if any command fails (default is continue-on-error).

trxo batch export authn services managed --stop-on-error

Batch Import

From Directory: Searches the directory for files matching the specified commands and imports them.

trxo batch import --dir batch-export/ command1 command2

From Config File: Import using a JSON manifest file containing detailed paths and options.

trxo batch import --config-file batch_config.json

For more details, see Batch Operations Guide.


6. Log Management

Manage and monitor TRXO application logs for troubleshooting and auditing.

View Recent Logs: Displays the last 20 lines of logs in the console.

trxo logs show

Advanced Log View: Filter logs and follow live output.

trxo logs show --lines 30 --follow --level INFO
* --lines: Specify the number of lines to display from the end. * --follow: Monitor logs live as they are written. * --level: Filter by log level (DEBUG, INFO, WARNING, ERROR).

View Log Configuration: Displays log file paths, current level, and retention settings.

trxo logs info