Skip to content

CLI

Run the CLI with:

uv run --package adobe-target-admin-cli adobe-target --help

If you install the CLI package directly, use adobe-target.

What It Is For

The CLI is designed for:

  • humans who want a documented command interface
  • agents that need predictable JSON output
  • shell scripts that want stable auth helpers and resource commands

The current command surface focuses on:

  • logging in with Adobe IMS user auth
  • showing the current saved auth session
  • logging out and clearing the saved session
  • listing properties

Common Environment Variables

The auth commands can use:

  • ADOBE_TARGET_CLIENT_ID
  • ADOBE_TARGET_CLIENT_SECRET
  • ADOBE_TARGET_REDIRECT_URI
  • ADOBE_TARGET_CLI_CONFIG_DIR

The properties commands can use:

  • ADOBE_TARGET_TENANT
  • ADOBE_TARGET_API_KEY
  • ADOBE_TARGET_ACCESS_TOKEN

Log In

uv run --package adobe-target-admin-cli adobe-target auth login \
  --client-id your-client-id \
  --scope openid \
  --scope offline_access \
  --redirect-uri https://localhost/callback

This opens the Adobe IMS login flow in your browser, prompts for the returned redirect URL or authorization code, exchanges it for tokens, and saves the resulting session locally.

Adobe's credential type matters here:

  • Web App credentials can support offline_access and refresh tokens
  • Single Page App and Native App credentials do not provide refresh tokens, so you should expect to log in again after the access token expires

Show Session Status

uv run --package adobe-target-admin-cli adobe-target auth status

This prints JSON describing the saved session, including whether a refresh token is available and when the current access token expires.

Log Out

uv run --package adobe-target-admin-cli adobe-target auth logout

This deletes the saved local auth session.

List Properties

uv run --package adobe-target-admin-cli adobe-target properties list \
  --tenant your-tenant \
  --api-key your-api-key \
  --access-token your-access-token

This prints the current tenant's properties as JSON.

Relationship To The SDK

The CLI is a thin layer on top of the Python SDK.

Use: