---
title: blossom profile:rename
url: "/docs/reference/cli/profile/rename/"
canonical_url: https://docs.blossom88.com/docs/reference/cli/profile/rename/
markdown_url: https://docs.blossom88.com/docs/reference/cli/profile/rename.md
summary: Rename a local profile and its saved login
categories:
- cli
- reference
---

# blossom profile:rename

Rename a local profile and its saved login

## Usage

    blossom profile:rename --from FROM --to TO

## Flags

| Flag | Description |
| --- | --- |
| `--from (required)` | Existing profile name |
| `--to (required)` | New, unused profile name |

Examples:

    blossom profile:rename --from work --to production

Renames the local profile and moves its saved credentials. The Account, API
endpoint and tokens stay the same; no login or API request is needed.

If this is the saved current profile, the selection follows the new name.
Otherwise your current selection stays unchanged. Existing destination profiles
or credential files are rejected. A profile without saved credentials can also
be renamed.

If your shell sets `BLOSSOM_PROFILE` to the old name, update that variable too;
the CLI prints a reminder. If another profile is selected, completion prints:

    blossom profile:use --name production
