jf config use

Set the active server by its ID. Subsequent commands use this server unless overridden.

Synopsis

jf config use <server-id>

Aliases: none

Arguments

ArgumentRequiredDescription
server-idYesThe server ID to set as active

Examples

Set the Active Server

jf config use <server-id>

When to Use

Use jf config use when you have multiple server configurations (e.g., dev-server, staging-server, prod-server) and want to switch the default for all subsequent commands.

Shortcut: If you only need to override the server for a single command, use the --server-id flag instead of switching the active server:

jf rt ping --server-id=prod-server

Or set the JFROG_CLI_SERVER_ID environment variable for a session:

export JFROG_CLI_SERVER_ID=prod-server
jf rt ping  # Uses prod-server without changing the active config

Important Notes

  • The active server setting persists across sessions — it is stored in the configuration file.
  • Using --server-id on a command always overrides the active server for that command only.
  • The JFROG_CLI_SERVER_ID environment variable overrides the active server for the entire session.

What’s Next

You're all set. Explore the general commands available in JFrog CLI.