Repository navigation
Releases
Releases · Azure/CosmosDBShell
v1.3.7-preview
Breaking changes
- Machine-mode
watchnow requires a positive--maxand emits collected changes as a final result instead of streaming them to stdout. Add--max=<count>to automated calls; interactive mode still supports following until Ctrl+C. (#254) - MCP clients can no longer invoke
cat,dir, orjq. MCPimportandexportnow require explicit user confirmation, including import dry runs and forced exports; clients without confirmation support are refused before execution. Interactive shell commands are unchanged. These restrictions are not a filesystem sandbox; use only trusted MCP clients. (#305)
Fixes
- Display MCP command results, warnings, and errors in the interactive shell using the requested output format or session default, while preserving structured MCP responses and paging. (#302)
- Identify local emulator connections by their endpoint and show
emulatorin the prompt at account, database, and container scope instead of127,localhost, or an emulator-returned account ID. (#300)
Improvements
- Apply consistent output handling across commands:
--quietsuppresses informational messages, progress, banners, and command echoes while retaining results, warnings, errors, and required authentication instructions. Machine-mode stdout contains command results only; diagnostics go to stderr without ANSI styling. (#254)
Full changelog: v1.2.4...v1.3.7-preview
v1.2.4
First stable (non-prerelease) release of Cosmos DB Shell.
Breaking changes
- Structured
helpresults now include atopicsarray alongsidehelp,commands, andstatements. Consumers that require an exact set of JSON fields must accept the new field. (#267) pwdnow prints labeled Cosmos location and local directory lines. Structured results retain the existing fields and addlocalDirectory; consumers that require an exact JSON shape must accept the new field. (#269)mkdbandcreate databasenow create databases without shared throughput when--scaleand--ruare omitted. Provision throughput on individual containers, or specify--scale=auto --ru=1000to retain the previous shared autoscale default. Container creation defaults are unchanged. (#268)
New features
- Add
help shortcutsto list keyboard shortcuts, including history search withCtrl+RandCtrl+S; thehelpoverview lists it under Help Topics. (#267)
Fixes
- Show endpoint-only account and emulator examples when running
connectoffline; keep the connection-string alternative inhelp connect. (#270) - Show the absolute destination path in export success messages so exported files can be located. The structured result's
filefield continues to contain the supplied path. (#269) - Return exit code
5whenprintcannot find an item, instead of the generic failure code1, while retaining the item and partition-key diagnostic. (#288) - Show concise, actionable Azure and Cosmos DB service errors, including account throughput-limit failures, instead of nested service error payloads. MCP logs include full exception details only with
--verbose. (#283) - Preserve output and redirections for every statement in multi-statement
-c/-kinput and redirected stdin, including output before a later runtime failure. Redirecting a script with>truncates the destination once and retains all statement output;>>appends without truncating. (#286) - Redact recognized connection credentials from persisted command history, including existing entries when history is next saved successfully. Recalled key-based connections require a fresh key or Entra ID authentication. Existing backups, command echoes, and command output are not cleaned by history filtering. (#291)
- Return usage exit code
2consistently for rejected command arguments and invalid input, while preserving operational and service failure exit codes. (#289) - Emit structured JSON diagnostics on stderr for returned command errors in machine mode, including failed
themecommands and rejected non-interactiveeditcalls. Preserve structured failure payloads and stderr redirection without duplicate diagnostics. (#287) - Stop independent script statements from passing earlier results implicitly into
rmand other input-consuming commands. Use an explicit|to pass pipeline input; explicit pipelines continue to work through functions, scripts, and dynamicexec. (#292)
Improvements
- Clarify that MCP
importandexportacceptuser,json,csv, ortablefor command-result presentation, not input or output file encoding. Import file formats are detected automatically;arrayandjsonlare not validformatvalues. (#285) - Show a consistent
VERSIONlabel centered below the welcome screen'sSHELLlogo in light gray. Prerelease versions retain their suffix without a duplicate preview label; explanatory prerelease warnings are removed from the welcome screen and compact startup status. (#296)
Full changelog: v1.1.295...v1.2.4
v1.1.295
Breaking changes
- On Entra ID (Azure Resource Manager) connections,
mkdb,mkcon,create database, andcreate containernow returncreated: nullwithoutcome: "createdOrUpdated"instead ofcreated: true, because the ARM create-or-update API cannot distinguish a new resource from an existing one. Scripts that treatcreatedas a boolean should checkoutcomeinstead. (#261)
New features
Fixes
- Preserve
?in unquoted command arguments so scalar indexing paths such asindex add /city/?andindex remove /city/?reach Cosmos DB unchanged. (#260) - Long-running commands and scripts against a local emulator no longer fail with a timeout and disconnect after 10 seconds while the emulator is still responding. The 10-second limit now applies only when nothing makes progress, and it is paused while confirmation prompts and external editors wait for input.
- Preserve partial bulk write counts through pipelines on emulator timeouts, report consumed inactivity cancellations as failures, and keep active bulk selection, export, and piped removal scans from timing out during local processing.
- Prevent scripts from rendering timed-out partial results as successful, pause emulator inactivity deadlines during file/theme editing and change-feed polling intervals, and cancel stalled change-feed requests.
- Keep Ctrl+C effective for startup commands and redirected scripts, and exclude local external tools such as
jqfrom emulator inactivity deadlines. - Report interrupted startup commands as failures, retain structured partial write results, and prevent MCP prompt refreshes from canceling queued startup work.
- Retain settled import counts and RUs on cancellation, prevent interrupted startup scripts from writing partial success output, and keep intentional watch stops successful through pipelines, blocks, and scripts.
- Stop follow-up startup commands after an intentional watch stop in redirected stdin, and align timed-out import result error messages and exit codes with the command failure.
- Keep import progress counts and observed RUs current when writes finish while the next input record is still being read.
- Keep bulk completion counts current during slow input reads, allow cancellation while loading resume journals, and recognize active local validation, removal scans, and successful journal recording without treating failed requests as activity.
- Stop interrupted startup stdin reads, confirmation prompts, and watch expressions before subsequent work; keep machine-readable stdout clean on Ctrl+C and exclude external command expressions from emulator inactivity deadlines.
- Database and container creation on key, emulator, and static-token connections now report
created: falseandoutcome: "existing"when an existing resource is reused, instead of always reportingcreated: true. Human-readable output says "Using existing database/container" in that case. (#261)
Improvements
- Show periodic progress for
import,bulk, and pattern-basedrm, including elapsed time, counts, and observed RU usage, even while requests are waiting. In a terminal, a single progress line is updated in place and removed when the command finishes. Structured output and MCP responses remain unchanged.
v1.1.291
Breaking changes
print <id> <key>now parses the key with the same typed syntax aspatch, soprint item-1 680reads numeric key680instead of string"680". To address a string key that looks like a number, boolean, null, or JSON array, quote it as a JSON string:print item-1 '"680"'. (#244)importandexportnow use the JSON format of the Azure Databases extension for VS Code.exportwrites an indented JSON array, or CSV when the file name ends in.csv; JSON Lines output is no longer supported.importautomatically detects JSON arrays, single objects, and sequences of objects (including JSON Lines) in non-CSV files; no--legacyflag is needed. On both commands,--format/-fselects the command-result presentation (user,json,csv, ortable), not the file contents.import --dry-runnow reports locally validated records invalidatedand always setsimportedto0. Dry-run results explicitly identify offline validation and an unchecked target.
New features
- Non-transactional
bulkcommand. Run unlimited independentcreate,upsert,replace,delete, andpatchoperations across partition keys with bounded concurrency (default 16). It uses the batch operation schema, plus optional per-operationpartitionKeyandifMatch, and the samerun/begin/add/execute/cancel/status/showsubcommands.bulk patch --whereandbulk delete --whereselect items by predicate, including complete hierarchical partition keys. Add--saveto write a reviewable plan forbulk run. Safeguards include dry-run, confirmation, item and observed-RU limits, and ETag checks. Journals skip succeeded writes on rerun, retry failed writes, and hold back writes with unknown outcomes. MCP exposesrun,patch, anddelete. (#107)
Fixes
- Item commands now support undefined partition-key values (
PartitionKey.None) with the explicit{}syntax, including missing components in hierarchical keys. Mutations that infer undefined keys from item content emit bounded warnings. (#251) - Emit inferred-key warnings before bulk mutations and retain them across partial failures, MCP responses, expressions, and pipelines; wildcard
rm *also matches items with missing partition-key paths. - Route inferred-key warnings through stderr redirection and include pending warnings in machine-readable errors; import and scan-based
rmcounts reflect only scheduled writes and selected delete candidates. - Emit machine-readable warnings for inferred partition-key mutations before the writes as JSON Lines records on console stderr.
- Report invalid import partition-key values as per-item failures with
--continue-on-error, show the final scheduled-write count in bulk warnings, and preserve prior warnings in script machine-mode errors. - Partition-key paths with quoted property names, such as
/"tenant id", are now resolved correctly when inferring keys from item content and when matching items or typing CSV import columns. sproc execnow returnsnullfor a stored procedure that completes without setting a response body, instead of reporting a failure after the procedure's writes have committed.printnow reads items with typed scalar and complete hierarchical partition keys, for exampleprint customer-1001 '[1001,"customer-1001"]'. Invalid keys are distinguished from missing items. Shared argument parsing rejects object/nested-array components and non-finite numbers instead of coercing them. (#244)- Avoid accessing an expired HTTP request during MCP session teardown, preventing disposal errors while releasing location subscriptions and legacy SSE admission state. (#249)
- Keep CLI inferred-key warnings visible before writes when the MCP listener is enabled; MCP calls continue to return warnings in their responses.
- Show successful imports as a readable summary in normal output mode without appending JSON; structured output modes receive only the result.
- Keep export, item-write, TTL, conflict-policy, and indexing-policy confirmations readable in normal output mode rather than appending status JSON. Requested structured results retain their existing data.
- Preserve import counts and observed write RUs in structured CLI and MCP errors after partial imports or invalid input. Import failures retain the underlying error classification and report a bounded representative error.
- Validate item IDs during import dry runs and report local validation failures with usage exit code
2. Help and results clarify that dry runs do not check target partition keys, permissions, conflicts, or other service constraints. - Reject non-object values in JSON object sequences before buffering their bodies, report physical start lines for sequence items, and validate import result formats before accessing the target container or writing items.
- Restore actionable missing-value diagnostics for startup options such as
--connectand keep literal help/version command tails separate from startup handling. - Include requested CSV result text in MCP responses for failed imports and other structured failures, alongside the error and partial results.
- Preserve partial bulk results after execution errors or cancellation, decode quoted partition-key paths consistently, and prevent retries from replaying newer journal outcomes or reordering writes after a failure.
- Remove incomplete bulk saved plans when the final file flush fails, so a truncated plan cannot be mistaken for a complete job.
- Restore actionable missing-value diagnostics for startup options such as
--connectand keep literal help/version command tails separate from startup handling. - Release bulk temporary files promptly after a final spool flush fails, preventing retained disk space from hindering recovery.
- Report invalid Unicode item IDs in import dry runs as validation errors, preserving the validated count, selected result format, and usage exit code.
- Reject malformed BOM-encoded UTF-16/UTF-32 import files instead of silently replacing characters in item IDs; retain partial results and the requested result format when decoding fails.
- Count invalid Unicode partition-key strings as per-item import failures without losing concurrent write results or the selected output format.
- Describe existing custom conflict policies without a stored procedure as requiring manual resolution rather than displaying an empty procedure name.
- Validate UTF-8 throughout JSON import files, including non-ID fields, and retain structured partial results when malformed bytes are found.
- Avoid repeatedly parsing incomplete JSON objects during import when large records arrive in short reads.
- Preserve completed import writes, observed request charges, and structured partial results when an SDK request timeout occurs alongside other in-flight writes; explicit caller cancellation still stops the import.
- Restore BOM-aware UTF-16/UTF-32 JSON import support, including JSON Lines, while streaming the input.
- Honor
2>and2>>for structured command failure diagnostics in normal output mode, including import dry-run validation errors. - Reject malformed JSON object prefixes before growing the import buffer, preventing invalid input followed by a large whitespace tail from exhausting memory, including during dry runs.
- Keep terminal JSON output valid on narrow consoles by avoiding inserted line breaks inside long JSON strings. Shorter JSON output remains syntax-highlighted.
Improvements
importnow streams documents with up to 16 concurrent writes by default. Use--concurrencyto tune the limit or--concurrency=1for sequential, file-order writes. On a failure, imports stop scheduling new writes and wait for in-flight writes;--continue-on-errorcontinues after per-item write failures.- Refresh dependencies, including the stable Cosmos DB client SDK, .NET 10 hosting libraries, command-line parsing, theme loading, editor/LSP support, authentication, diagnostics, serialization, and test/build tooling. Preserve existing CLI options and theme files while migrating to the current library APIs.
v1.1.280
Fixes
- Restore legacy MCP HTTP+SSE endpoints alongside Streamable HTTP on the same
--mcpserver using SDK 2.2. No extra option is required. Bound outstanding legacy requests to 16 across all sessions and reject excess requests without queuing. - Parse
execoptions and shell words like direct commands. Bind built-in options normally and pass option-shaped words to functions and script files as positional text. foranddoloops now reject misspelledinandwhilekeywords before any statements in the input execute. They previously accepted any identifier in those positions.filternow rejects array index literals larger than2147483647, including optional access, instead of silently selecting element zero. Representable indexes beyond the array length still returnnull.- Decimal arithmetic and comparisons involving JSON numeric strings now use the same culture-invariant
doubleconversion as shell strings instead of failing with aDecimal-to-Doublecast error. String concatenation with+is unchanged. execnow accepts normal command options, negative arguments, URLs, and file patterns while preserving variable, JSON, and parenthesized-expression arguments. Options previously failed to parse, including the documentedexec $cmd -m 5form.- Detect local Cosmos DB emulator connections by the parsed HTTP(S) endpoint host, preventing misleading remote URLs or unrelated connection-string fields from automatically disabling TLS certificate validation.
v1.1.271
New features
- Transactional
batchcommand. Execute 1-100create,upsert,replace,delete, orpatchoperations atomically within one partition key withbatch run <json> --partition-key <pk>. Interactive shells can also assemble a batch withbegin/add/execute, inspect it withstatus/show, or discard it withcancel. A failed operation rolls back the entire batch. MCP exposes only the one-shotrunmode because clients share shell state. (#135) query --explain. Inspect index usage, utilized and potential indexes, index-hit ratio, request charge, and a plain-language evaluation instead of returning documents. The probe reads only the first query page withMaxItemCount = 1; its metrics are estimates, and unavailable index metrics are reported as unknown rather than as a full scan. Available in interactive, machine-readable, and MCP output. (#131)- Read-only
doctordiagnostics. Run bounded local, DNS, data-plane, and optional ARM checks without changing connection or navigation or initiating interactive login. Supports explicit database/container targets, an opt-in constant-projection query, timeout controls, and structured reports with verdicts, timings, and observed RUs.doctor whoadds known credential and scope information without claiming verified write access. Clock-skew estimates reuse existing response headers; a bounded public GitHub release lookup reports available updates and can be disabled with--no-update-check. (#209) - Live MCP shell-location resource. Read
cosmos://shell/current-locationfor bothcurrentLocationandcurrentAccountEndpoint, and subscribe to updates caused by interactive or MCP navigation and connection changes. MCP2026-07-28clients usesubscriptions/listen; clients using theinitializehandshake useresources/subscribeand the session's GET stream. Notifications signal clients to reread the resource; explicit database/container arguments remain the reliable way to target independent operations. (#223, #231, #232)
Improvements
- Cosmos DB data-plane commands now consistently expose their aggregate observed request charge in structured output and connection-scoped
infotelemetry, including metadata/configuration operations, scripts, change feed reads, paginated operations, handled probes, and charged failures. MCP results carry the observed cost in a top-levelrequestChargefield, including charged failures. Azure Resource Manager control-plane operations remain uncharged. (#171) - Added
$sessionRequestChargeand$sessionChargedOperationCountas read-only shell variables. Set$sessionRequestChargeWarningThresholdto a positive RU threshold to print one warning when the current connection reaches it;inforeports it assession.requestChargeWarningThreshold. (#171) - MCP
queryand container-itemlscalls now return bounded, resumable pages with an opaquecontinuationToken. Pass a non-null token back ascontinuationwith the same query and options to retrieve the next page. Database/container name listings remain complete, and interactive and scripted commands retain their existing multi-page behavior. (#204) - The HTTP MCP server supports protocol
2026-07-28without a session, including streamedsubscriptions/listenupdates and multi-round-trip destructive confirmations. Confirmation retries carry server-signed, single-use state tied to the exact command and shell context, expiring after 10 minutes. Clients using theinitializehandshake retain session-basedelicitation/create; their location subscriptions end when the session is deleted or has no open requests for 10 minutes. (#231, #232) - The welcome screen, command-example descriptions, runtime errors, and theme-preview labels now use localization resources and the OS UI language when translations are available, with English fallback for untranslated text. Added and refreshed catalogs for Czech, German, Spanish, French, Italian, Japanese, Korean, Polish, Brazilian Portuguese, Russian, Turkish, and Simplified and Traditional Chinese. Executable examples, command names, and flags remain unchanged. (#206, #211, #212, #213, #216, #217)
- Cosmos DB SDK requests now include the shell application version in the user agent, making client versions identifiable in service diagnostics. (#210)
- Destructive MCP confirmations now identify their target. The elicitation prompt adds the connected account endpoint and the current database/container location, and notes that explicit
--db/--conarguments override that location. (#207) - Import and export no longer hold entire files in memory. CSV imports are parsed incrementally, and CSV exports spool documents to a private temporary file to determine the complete column set, so transfers no longer scale with document count. Allow temporary disk space for the CSV export spool in addition to the destination file. (#207)
- Script diagnostics now report where a failure happened. Human-readable output shows the innermost source location first followed by the recorded function and script call sites, JSON errors carry the originating file, line, and column, and diagnostic logs retain both through the existing secret-redaction pipeline. Functions keep their defining file's location even when invoked from another file. (#208)
- The language server now applies the same validation as script execution: control-flow placement, duplicate function parameters, document-local function names, and commands and built-in options nested inside blocks, branches, loops, pipelines, and command expressions. Variable and function symbols are case-sensitive, so
$valueand$Valuestay distinct. (#208) - Host-requested cancellation now propagates through script files, blocks, loops, and function calls without being turned into a positional runtime error. The shell reports a neutral result, records the cancellation in the diagnostic log, and restores call scopes and source context. (#208)
- Documented the shell language in programming: operator precedence and associativity, compound assignment, numeric promotion, a statement grammar, validation rules, and resource limits. (#208)
rmaccepts--partition-key(--pk) to restrict both the dry run and the deletion to one complete logical partition key, including typed and hierarchical keys.rm <id> --key=id --partition-key=<pk>uses a point read or point delete instead of scanning the container, and its dry run reports the item'sid,partitionKey, andetag. The new--etagoption deletes that item only if its ETag still matches; a mismatch fails without retrying. (#230, #229)
Breaking changes
- MCP
queryand container-itemlsno longer aggregate all pages in a single call.maxbounds one page and must be positive; omitted or non-positive values use a default cap of 100. Clients must follow non-nullcontinuationTokenvalues rather than assuming a short page means exhaustion. A null token marks exhaustion unlessresultIncompleteis true. (#204) - Malformed CSV files are now rejected instead of being silently misread. An unterminated or misplaced quote previously caused the remainder of the file to be absorbed into a single field, so the import reported success while writing corrupted items. Such files now abort with
Invalid CSV record at line <n>. Imports that previously appeared to succeed may now fail and require the source file to be corrected. (#207) - Command text and script files are now fully parsed and validated before any of their statements run, so a syntax or semantic error prevents the entire input from executing rather than failing part-way through. Invalid control flow is rejected:
returnrequires an enclosing function or script file,breakandcontinuerequire an enclosing loop in the same function or script, and duplicate function parameter names are refused. (#208) - Calling a function with too few or too many arguments is now a usage error that exits with code
2, including calls inside expressions. The function body does not run. (#208) - Integer arithmetic now reports overflow as an error instead of wrapping. Shell integer literal magnitudes must be between
0and2147483647; because the minus sign is a separate unary operator, the minimum shell integer must be writte...
v1.1.209
New features
--databaseand--containerstartup options. Navigate to a database or container at startup without composing a-k "cd ..."command. Both require--connect, and--containerrequires--database. Tools that previously built a startup script string to select a location should pass these options instead. See navigation.
Breaking changes
- String interpolation now requires the explicit
$"..."prefix. In ordinary double-quoted strings,$nameand$(...)are literal text and are no longer evaluated — previously any"..."string containing$was interpolated. Scripts that relied on"Hello $name"must be changed to$"Hello $name"; this change is silent, so review scripts that build strings from$values. Inside an interpolated string,$(...)evaluates a complete expression, but command expressions are rejected;\$escapes a literal dollar sign. Ordinary double-quoted strings additionally accept\uXXXXescapes. See programming.
Fixes
- Command text reconstructed from a parsed command (MCP tool-call history, the echoed command line, and AST
ToString()) is now serialized through a single literal writer. Values were previously quoted only when they contained a space, and were never escaped, so a value containing a quote, a backslash, a semicolon, or a control character produced command text that no longer parsed back to the original value. Options also lost their-prefix and their value separator. Reconstructed command text now round-trips.
v1.1.190
New features
- Deterministic machine output and exit codes. Global
--output/--quiet, structured JSON/CSV machine mode, and stable process exit codes (0–6) for automation and CI. (#173, #155, #176, #177) setup-cosmosdb-shellGitHub Action and CI/CD guide for installing the self-contained shell in pipelines without a .NET SDK on the runner. (#173)
Improvements
- Destructive MCP commands now prompt for confirmation instead of being blocked. When an MCP client invokes
delete,rm,rmcon, orrmdb, the server sends an elicitation prompt describing the exact command line and only runs it if the user approves; declining, cancelling, or a client that cannot confirm results in nothing being executed. (#183, #158) - Preview releases are clearly identified at startup. The welcome screen and compact startup output now show the current preview version and warn that commands, output, and behavior may change before general availability. (#193)
Breaking changes
- Failures no longer always exit with
1. Exit codes are now classified into a stable set —2usage/parse errors,3authentication,4connection,5not found,6throttled — with1reserved for uncategorized failures. Scripts that branch on the exact value1must be updated; checks for a non-zero exit code are unaffected. See the exit-code contract. (#173, #176) - Execute-and-quit (
-c) now defaults to machine mode with JSON output instead of the interactive human-facing view. ANSI colors, banners, and informational messages are suppressed, and errors are written to STDERR as{"status":"error","error":"..."}. Pass--output useror--output tableto restore the previous presentation. (#173, #155) - The structured JSON emitted by commands now follows a consistent contract. Listings return
{ "type": "<kind>", "values": [ ... ] }— this replaces the bare arrays previously returned bydir,sproc list,udf list, andtrigger list, the{ "items": [...] }envelope used byls,query, andwatch, and the{ "themes": [...] }envelope used bytheme list.queryno longer switches betweenitemsanddocumentsdepending on whether metrics were requested. Single-resource results return{ "type": "<kind>", "id": "<name>", "<verb>": true }, somkdb/mkconno longer returncreated_database/created_container,rmdbreportsidinstead ofdb,rmconreportsidinstead ofcontainer, both always includedryRun, andsproc/udf/trigger createnow reportcreatedon success instead of omitting it.themesubcommands report the theme inidwith a boolean verb (active,applied,previewed,loaded,saved,edited,opened) rather than encoding the name in the key.cdandpwdreturn{ "type": "location", "database": ..., "container": ..., "currentLocation": ... }—cdno longer returns the"connected state"/"database state"/"container state"keys.connectanddisconnectreturn a"type": "connection"payload, and a successfulconnect <endpoint>returns{ "connected": true, "endpoint": "..." }instead of{ "connected state": "..." }. Item listings additionally carry alimitReachedflag. Tooling that parses this output must be updated. (#173) - Write commands report what they actually did instead of
{ "result": "success" }.mkitem/create itemreturn{ "type": "item", "created": <n>, "replaced": <n>, "failed": <n>, "requestCharge": <ru> },replacereturnsreplaced/failed/requestCharge,patchreturns{ "id": ..., "patched": true, "requestCharge": <ru> },importreturns{ "file": ..., "imported": <n>, "failed": <n>, "requestCharge": <ru>, "dryRun": <bool> }, andexportreturns{ "file": ..., "exported": <n>, "requestCharge": <ru> }. (#173)
Fixes
cdandmkdbbuilt their JSON result by string concatenation, so a database or container name containing a double quote produced malformed JSON and failed the command instead of navigating or reporting the created database. Both now serialize the payload properly. (#173)theme listrendered a singlethemescolumn containing the whole JSON array when--output csvor--output tablewas used, because the shared table renderer only recognized thevalues/itemslist envelopes. It now emits one row per theme. (#173)theme listandtheme showwrote their human-facing output while the command executed, so--output tableprinted the interactive listing and the rendered table. Both now defer that output to the interactive renderer. (#173)
Build & pipeline
- NuGet packages are now framework-dependent. The primary
CosmosDBShell.NET tool package uses the installed .NET 10 runtime for a smaller download, while standalone self-contained builds continue to ship as per-RID ZIP archives. (#191, #174) - Removed the redundant advanced CodeQL workflow and use the repository's GitHub-managed CodeQL default setup as the single source of code-scanning results. (#194)
v1.1.136
Highlights
ttlcommand to view and change a container's time-to-live policy withshow/set <seconds>/on/off(#151)conflictcommand to view and change a container's conflict resolution policy withshow/set --mode <lastWriterWins|custom>(#151)bucketcommand now manages container throughput bucket limits (show/set/clear) in addition to client-side bucket selection (#144)--dry-runpreviews forthroughputwrite subcommands (#164) and for the destructive delete commandsrm/rmcon/rmdb/delete(#156)- Structured (JSON) tool results for MCP, surfaced as first-class
structuredContentalongside the existing text block (#154)
Fixes
- MCP clients that reject unknown protocol versions (for example, Claude Code) can now connect: the server no longer advertises an unsupported protocol version (#150)
- MCP tool calls no longer fail with
ObjectDisposedException: The CancellationTokenSource has been disposedwhen the shell cancels a prompt (#150)
Build & pipeline
- Added a CodeQL analysis workflow for C# that builds the solution with
build-mode: manual(#165) - Updated GitHub Actions (
actions/checkout,actions/setup-dotnet,actions/upload-artifact) to versions that run on Node 24 (#152) - Added a
unionmerge driver forCHANGELOG.mdso concurrent PRs merge their Unreleased entries automatically instead of conflicting (#172)
See CHANGELOG.md for the full list, including all improvements and documentation updates.
v1.1.115
Highlights
- Configurable color
themecommand to inspect, switch, load, validate, save, edit, and reload shell color themes, with built-in profiles and user themes (#83, #97) - Native
filtercommand — a shell-safe, jq-inspired expression language for filtering and reshaping JSON in the pipeline (#67) - Change-feed
watch(aliastail) to follow a container's change feed as highlighted JSON (#115) indexandthroughputmanagement for indexing policies and RU/s scaling with confirmation on billable changes (#116, #130)- Bulk
import/exportfor JSON Lines / JSON array / CSV round-trip (#95) - Server-side programming:
sproc,udf, andtriggercommands (#124) infocommand (renamed fromsettings) reporting usage statistics with--partitions,--detailed, and--format jsonoutput (#134, #148)- Observability:
--diagnosticslogs and--oteldistributed tracing (#127, #126)
Other improvements
- REPL highlights incomplete constructs while you keep typing (#93)
- Hardcoded colors route through the active theme; JSON highlighted by token position (#97)
- Unknown-command diagnostics show a source caret under the offending token (#99)
- Refreshed prompt with a chevron marker, connected account name, and offline label (#133)
lsprints result-count summaries, consistent across databases, containers, and items (#129, #139)- REPL highlighting covers every statement in
;-separated input (#141)
Security
- MCP tool-call hardening and transport/origin validation for the HTTP MCP server (#120)
- Resolved CodeQL alerts SM05137 and SM02184 in the connect flow (#132)
Breaking changes
- The
settingscommand has been renamed toinfoand is no longer available under its old name (#134) - The standalone
indexpolicycommand has been removed and is now an alias ofindex(#140) - Removed the
--editoroption fromtheme edit; the editor is resolved from$VISUAL, then$EDITOR, then a platform default
Build & pipeline
- CI publishes code coverage to GitHub Code Quality on pull requests (#128)
- Expanded unit coverage for the parser and offline command paths (#121)
See CHANGELOG.md for the full list, including all fixes and documentation updates.