Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                

Show JFrog CLI Server Configurations

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.

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.
📘

CLI alias limitation

The short alias jf c s does not support a server ID argument because of a known CLI issue. Use jf config show <server-id> or jf c show <server-id> to show a specific server.

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. Available from JFrog CLI 2.105.0. Accepts json or table. With --format json the command emits a JSON array of server entries with sensitive fields masked as ***. 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

To show all configured servers:

  • Run the following command.

    jf config show

Show a Specific 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/
Pipelines URL:          https://acme.jfrog.io/pipelines/
User:                   admin
Password:               ***
Default:                true

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 ***.

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

jf config show --format json
[
  {
    "serverId": "my-server",
    "url": "https://acme.jfrog.io/",
    "user": "admin",
    "password": "***",
    "accessToken": "***",
    "sshKeyPath": "",
    "clientCertPath": "",
    "isDefault": 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/
Pipelines URL:          https://acme.jfrog.io/pipelines/
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>.