> ## Documentation Index
> Fetch the complete documentation index at: https://docs.condense.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Targeting and configuration

> How the CLI remembers your environment and workspace, the flags that override them for one command, and the global flags.

Every command acts on something: an environment, a workspace or a service. This page explains how the CLI knows which one, and how to name a different one for a single command.

## What the CLI remembers

The CLI keeps these on your computer between commands:

* Your sign-in session.
* Your active environment.
* Your active workspace.

They stay until you change them, or until you run `condense auth logout`, which clears them.

## Override for one command

Most commands accept targeting flags. They override your active selection for that command only, and leave your selection as it was.

* `--workspace <name>`: Acts on a workspace, by name.
* `--workspace-id <id>`: Acts on a workspace, by its numeric ID.
* `--service <name>`: Acts on a connector service, by name.
* `--service-id <id>`: Acts on a connector service, by its ID.

```bash theme={null}
# Read the logs of a connector in another workspace, without switching
condense pipeline logs --workspace other-workspace --service vehicle-scorer
```

## Select an environment

`condense environment use` accepts the environment's name, client ID or numeric ID:

* `condense environment use <env-name>`
* `condense environment use --env <env-name>`
* `condense environment use --env-id <client-id>`
* `condense environment use --id <numeric-id>`

## Configuration files

Settings for a deploy or an edit come from a file:

```bash theme={null}
condense pipeline deploy <name>@<version> --env-file ./config.env
condense pipeline edit --service <name> --to <version> --env-file ./config.env
```

To start from a template, download the configuration of a custom connector app with `condense app download-config --app <app-name> --version <version>`. See [Deploy and move](https://docs.condense.io/condense/v3.0.0/cli/deploy-and-move.md).

## Global flags

* `--output <table|json>`: Prints a table, which is the default, or JSON. See [Output and scripting](https://docs.condense.io/condense/v3.0.0/cli/output-and-scripting.md).

## Related

> [card] [Concepts](https://docs.condense.io/condense/v3.0.0/cli/concepts.md)
>
> What an environment, a workspace and a service are.

> [card] [Command reference](https://docs.condense.io/condense/v3.0.0/cli/command-reference.md)
>
> Every command in one place.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.