# dflow projects:use

> Select a project after the API confirms it exists.

Web page: /docs/cli/project/projects-use/

This selects a project that already exists and clears the saved environment. Choose an environment next with `dflow environments:use` or `dflow environments:create`. A missing name leaves the config file unchanged.

```bash
dflow projects:use NAME
```

## Flags

`--output`, `--api`, and `--context` apply. `--project` and `--environment` on this command are not how you save the choice. The name argument is saved.

## What you see

The terminal prints `name`, `id`, `project`, and an empty `environment`. The API list must contain the name. The saved environment is cleared.

## When it fails

A missing name exits 3 and leaves the config file unchanged. Exit 1: bad name or missing workspace. Exit 2: auth. Exit 10: unreachable.
