[P1] Add Saved Connection Profiles

Open
#104 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp
Domain
cli, security

Research direction

Start by reviewing the existing connect command and the shell's command-handling entry points, then compare the proposed profile save, list, use, and delete flows. Resolve how secure credential storage should work before implementation. Done means named profiles can be saved, listed, selected, and deleted without retyping connection strings.

Written by the indexing model from the issue text.

Description

enhancement

Feature Request

Priority: P1 (High)

Description

CosmosDB Shell has no way to save, list, or switch between named connection profiles. Power users managing multiple accounts/environments must re-type connection strings each time.

Comparable Features in Other Shells
  • sqlcmd: sqlcmd config subcommands (config view, config use-context)
Proposed Behavior

Add a profile or config command:

  • profile save <name> — Save current connection as a named profile
  • profile list — List saved profiles
  • profile use <name> — Connect using a saved profile
  • profile delete <name> — Remove a saved profile
  • Store profiles securely (credential store integration or encrypted file)
Example Usage
connect --connect "AccountEndpoint=..." --connect-mode direct
profile save prod-account

profile list
profile use dev-account
Dominant language
C#
Stars
3
Forks
7
Avg merge
1d 9h
Merged PRs (30d)
18

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/CosmosDBShell

All issues in Azure/CosmosDBShell

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.