Show JFrog CLI Server Configurations

Show stored JFrog CLI server configurations with jf config show to confirm IDs, defaults, and URLs.

jf config show prints the server entries stored in your local JFrog CLI configuration. Without arguments it lists every configured server. With a server ID it prints 1 server configuration (with secrets masked). Use it to confirm IDs, defaults, and URLs before running other commands. If you haven't configured a server yet, see Add a JFrog CLI Server Configuration first.

This topic covers the following:

Synopsis

jf config show <server-id>

Aliases: jf c s, jf c show

Where:

  • <server-id>: Optional. When omitted, the CLI lists all servers. When provided, only that server is shown.

Arguments

The following table lists command arguments.

ArgumentRequiredDescription
server-idNoShow only this server's configuration

Options

The following table lists command options.

FlagShortDefaultDescription
--formatOutput format. Accepts json or table. With --format json the command emits a JSON array of server entries with sensitive fields masked as ***. Fields that were never set for a server are omitted from its JSON entry. With --format table the command emits a 2-column FIELD/VALUE table using snake_case field names (for example server_id, access_token, is_default). This layout is different from the legacy default output. Passing --format alone returns Incorrect Usage: flag needs an argument: -format. Passing an unsupported value (for example, --format=yaml) returns [Error] only the following output formats are supported: json, table. Omitting the flag produces the legacy key/value output (see Expected Output).

Examples

Show All Configurations

Run this command without a server ID to list every server configured on this machine.

To show all configured servers:

  • Run the following command.

    jf config show

Show a Specific Server

Pass a server ID to limit the output to that 1 server.

To show 1 server configuration:

  • Run the following command.

    jf config show <server-id>

    Where:

    • <server-id>: The ID of the server to display.

    For example:

    jf config show my-server

Expected Output

When showing all configurations, each server block contains the fields that were set during configuration. A fully configured server shows all fields:

$ jf config show
Server ID:              my-server
JFrog Platform URL:     https://acme.jfrog.io/
Artifactory URL:        https://acme.jfrog.io/artifactory/
Distribution URL:       https://acme.jfrog.io/distribution/
Xray URL:               https://acme.jfrog.io/xray/
Mission Control URL:    https://acme.jfrog.io/mc/
User:                   admin
Password:               ***
Default:                true

Depending on how the server was configured, additional fields can also appear, such as Refresh token:, SSH key file path:, SSH passphrase:, Client certificate file path:, and Client certificate key path:. Only the fields that have a value are printed.

Servers configured with only basic settings show only the fields that were provided:

Server ID:              minimal-server
Default:                false

Sensitive fields such as passwords and tokens are always masked as ***. If the access token is a JWT, the masked line also shows the token's subject, for example Access token: *** (Subject: 'jfac@.../users/admin').

To get the same data as JSON for scripting, pass --format json:

jf config show --format json
[
  {
    "url": "https://acme.jfrog.io/",
    "artifactoryUrl": "https://acme.jfrog.io/artifactory/",
    "distributionUrl": "https://acme.jfrog.io/distribution/",
    "xrayUrl": "https://acme.jfrog.io/xray/",
    "missionControlUrl": "https://acme.jfrog.io/mc/",
    "user": "admin",
    "password": "***",
    "accessToken": "***",
    "serverId": "my-server",
    "isDefault": true
  }
]

Fields that were never set for a server (for example sshKeyPath or clientCertPath when no SSH/certificate auth is configured) are omitted from its JSON object rather than shown as empty strings.

To get the same data as a FIELD/VALUE table instead, pass --format table. This table uses different (snake_case) field names than the legacy default output:

jf config show --format table
FIELD                VALUE
server_id            my-server
url                  https://acme.jfrog.io/
artifactory_url      https://acme.jfrog.io/artifactory/
distribution_url     https://acme.jfrog.io/distribution/
xray_url             https://acme.jfrog.io/xray/
mission_control_url  https://acme.jfrog.io/mc/
user                 admin
password             ***
is_default           true

When showing a specific server, the output includes the same fields for that server only:

$ jf config show my-server
Server ID:              my-server
JFrog Platform URL:     https://acme.jfrog.io/
Artifactory URL:        https://acme.jfrog.io/artifactory/
Distribution URL:       https://acme.jfrog.io/distribution/
Xray URL:               https://acme.jfrog.io/xray/
Mission Control URL:    https://acme.jfrog.io/mc/
User:                   admin
Password:               ***
Default:                true

If the specified server ID is not found, the CLI exits with an error:

$ jf config show unknown-server
[Error] Server ID 'unknown-server' does not exist.
👍

Tip

Use jf config show to identify available server IDs, then switch the active server with jf config use <server-id>.

Frequently Asked Questions

This section provides answers to frequently asked questions.

plusFAQs
Q: How do I list all JFrog CLI server configurations?

A: Run jf config show with no arguments. See Show All Configurations for the full example.

Q: How do I get jf config show output as JSON for scripting?

A: Pass --format json. Sensitive fields are masked as ***, and fields never set for a server are omitted from its JSON object.

Q: What's the difference between the default output and --format table?

A: The default output uses labeled fields such as Server ID: and JFrog Platform URL:. --format table instead prints a FIELD/VALUE table using snake_case names such as server_id and is_default.

Q: What happens if I run jf config show with a server ID that doesn't exist?

A: The CLI exits with [Error] Server ID '<server-id>' does not exist.

Q: Are passwords and access tokens visible in jf config show output?

A: No. Sensitive fields such as passwords and tokens are always masked as ***. If the access token is a JWT, the masked line also shows the token's subject.

Related Topics


What’s Next

To switch between servers, see jf config use.

Did this page help you?