Skip to content

Releases

v1.3.7-preview

v1.3.7-preview Pre-release
Pre-release

Choose a tag to compare

@mkrueger mkrueger released this 24 Nov 16:06
3628267

Breaking changes

  • Machine-mode watch now requires a positive --max and 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, or jq. MCP import and export now 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 emulator in the prompt at account, database, and container scope instead of 127, localhost, or an emulator-returned account ID. (#300)

Improvements

  • Apply consistent output handling across commands: --quiet suppresses 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

Choose a tag to compare

@mkrueger mkrueger released this 12 Nov 16:32
3b7a6c5

First stable (non-prerelease) release of Cosmos DB Shell.

Breaking changes

  • Structured help results now include a topics array alongside help, commands, and statements. Consumers that require an exact set of JSON fields must accept the new field. (#267)
  • pwd now prints labeled Cosmos location and local directory lines. Structured results retain the existing fields and add localDirectory; consumers that require an exact JSON shape must accept the new field. (#269)
  • mkdb and create database now create databases without shared throughput when --scale and --ru are omitted. Provision throughput on individual containers, or specify --scale=auto --ru=1000 to retain the previous shared autoscale default. Container creation defaults are unchanged. (#268)

New features

  • Add help shortcuts to list keyboard shortcuts, including history search with Ctrl+R and Ctrl+S; the help overview lists it under Help Topics. (#267)

Fixes

  • Show endpoint-only account and emulator examples when running connect offline; keep the connection-string alternative in help connect. (#270)
  • Show the absolute destination path in export success messages so exported files can be located. The structured result's file field continues to contain the supplied path. (#269)
  • Return exit code 5 when print cannot find an item, instead of the generic failure code 1, 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 / -k input 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 2 consistently 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 theme commands and rejected non-interactive edit calls. Preserve structured failure payloads and stderr redirection without duplicate diagnostics. (#287)
  • Stop independent script statements from passing earlier results implicitly into rm and other input-consuming commands. Use an explicit | to pass pipeline input; explicit pipelines continue to work through functions, scripts, and dynamic exec. (#292)

Improvements

  • Clarify that MCP import and export accept user, json, csv, or table for command-result presentation, not input or output file encoding. Import file formats are detected automatically; array and jsonl are not valid format values. (#285)
  • Show a consistent VERSION label centered below the welcome screen's SHELL logo 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

v1.1.295 Pre-release
Pre-release

Choose a tag to compare

@mkrueger mkrueger released this 03 Nov 13:39
56279b9

Breaking changes

  • On Entra ID (Azure Resource Manager) connections, mkdb, mkcon, create database, and create container now return created: null with outcome: "createdOrUpdated" instead of created: true, because the ARM create-or-update API cannot distinguish a new resource from an existing one. Scripts that treat created as a boolean should check outcome instead. (#261)

New features

Fixes

  • Preserve ? in unquoted command arguments so scalar indexing paths such as index add /city/? and index 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 jq from 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: false and outcome: "existing" when an existing resource is reused, instead of always reporting created: true. Human-readable output says "Using existing database/container" in that case. (#261)

Improvements

  • Show periodic progress for import, bulk, and pattern-based rm, 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

v1.1.291 Pre-release
Pre-release

Choose a tag to compare

@mkrueger mkrueger released this 26 Oct 17:04
c666573

Breaking changes

  • print <id> <key> now parses the key with the same typed syntax as patch, so print item-1 680 reads numeric key 680 instead 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)
  • import and export now use the JSON format of the Azure Databases extension for VS Code. export writes an indented JSON array, or CSV when the file name ends in .csv; JSON Lines output is no longer supported. import automatically detects JSON arrays, single objects, and sequences of objects (including JSON Lines) in non-CSV files; no --legacy flag is needed. On both commands, --format / -f selects the command-result presentation (user, json, csv, or table), not the file contents.
  • import --dry-run now reports locally validated records in validated and always sets imported to 0. Dry-run results explicitly identify offline validation and an unchecked target.

New features

  • Non-transactional bulk command. Run unlimited independent create, upsert, replace, delete, and patch operations across partition keys with bounded concurrency (default 16). It uses the batch operation schema, plus optional per-operation partitionKey and ifMatch, and the same run/begin/add/execute/cancel/status/show subcommands. bulk patch --where and bulk delete --where select items by predicate, including complete hierarchical partition keys. Add --save to write a reviewable plan for bulk 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 exposes run, patch, and delete. (#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 rm counts 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 exec now returns null for a stored procedure that completes without setting a response body, instead of reporting a failure after the procedure's writes have committed.
  • print now reads items with typed scalar and complete hierarchical partition keys, for example print 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 --connect and 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 --connect and 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> and 2>> 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

  • import now streams documents with up to 16 concurrent writes by default. Use --concurrency to tune the limit or --concurrency=1 for sequential, file-order writes. On a failure, imports stop scheduling new writes and wait for in-flight writes; --continue-on-error continues 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

v1.1.280 Pre-release
Pre-release

Choose a tag to compare

@mkrueger mkrueger released this 09 Oct 13:19
6875685

Fixes

  • Restore legacy MCP HTTP+SSE endpoints alongside Streamable HTTP on the same --mcp server 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 exec options and shell words like direct commands. Bind built-in options normally and pass option-shaped words to functions and script files as positional text.
  • for and do loops now reject misspelled in and while keywords before any statements in the input execute. They previously accepted any identifier in those positions.
  • filter now rejects array index literals larger than 2147483647, including optional access, instead of silently selecting element zero. Representable indexes beyond the array length still return null.
  • Decimal arithmetic and comparisons involving JSON numeric strings now use the same culture-invariant double conversion as shell strings instead of failing with a Decimal-to-Double cast error. String concatenation with + is unchanged.
  • exec now 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 documented exec $cmd -m 5 form.
  • 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

v1.1.271 Pre-release
Pre-release

Choose a tag to compare

@mkrueger mkrueger released this 02 Oct 12:53
1921380

New features

  • Transactional batch command. Execute 1-100 create, upsert, replace, delete, or patch operations atomically within one partition key with batch run <json> --partition-key <pk>. Interactive shells can also assemble a batch with begin/add/execute, inspect it with status/show, or discard it with cancel. A failed operation rolls back the entire batch. MCP exposes only the one-shot run mode 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 with MaxItemCount = 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 doctor diagnostics. 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 who adds 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-location for both currentLocation and currentAccountEndpoint, and subscribe to updates caused by interactive or MCP navigation and connection changes. MCP 2026-07-28 clients use subscriptions/listen; clients using the initialize handshake use resources/subscribe and 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 info telemetry, including metadata/configuration operations, scripts, change feed reads, paginated operations, handled probes, and charged failures. MCP results carry the observed cost in a top-level requestCharge field, including charged failures. Azure Resource Manager control-plane operations remain uncharged. (#171)
  • Added $sessionRequestCharge and $sessionChargedOperationCount as read-only shell variables. Set $sessionRequestChargeWarningThreshold to a positive RU threshold to print one warning when the current connection reaches it; info reports it as session.requestChargeWarningThreshold. (#171)
  • MCP query and container-item ls calls now return bounded, resumable pages with an opaque continuationToken. Pass a non-null token back as continuation with 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-28 without a session, including streamed subscriptions/listen updates 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 the initialize handshake retain session-based elicitation/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/--con arguments 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 $value and $Value stay 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)
  • rm accepts --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's id, partitionKey, and etag. The new --etag option deletes that item only if its ETag still matches; a mismatch fails without retrying. (#230, #229)

Breaking changes

  • MCP query and container-item ls no longer aggregate all pages in a single call. max bounds one page and must be positive; omitted or non-positive values use a default cap of 100. Clients must follow non-null continuationToken values rather than assuming a short page means exhaustion. A null token marks exhaustion unless resultIncomplete is 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: return requires an enclosing function or script file, break and continue require 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 0 and 2147483647; because the minus sign is a separate unary operator, the minimum shell integer must be writte...
Read more

v1.1.209

v1.1.209 Pre-release
Pre-release

Choose a tag to compare

@mkrueger mkrueger released this 26 Aug 08:02
0d21834

New features

  • --database and --container startup options. Navigate to a database or container at startup without composing a -k "cd ..." command. Both require --connect, and --container requires --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, $name and $(...) 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 \uXXXX escapes. 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

v1.1.190 Pre-release
Pre-release

Choose a tag to compare

@mkrueger mkrueger released this 25 Aug 12:46
9254fdb

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-shell GitHub 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, or rmdb, 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 — 2 usage/parse errors, 3 authentication, 4 connection, 5 not found, 6 throttled — with 1 reserved for uncategorized failures. Scripts that branch on the exact value 1 must 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 user or --output table to 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 by dir, sproc list, udf list, and trigger list, the { "items": [...] } envelope used by ls, query, and watch, and the { "themes": [...] } envelope used by theme list. query no longer switches between items and documents depending on whether metrics were requested. Single-resource results return { "type": "<kind>", "id": "<name>", "<verb>": true }, so mkdb/mkcon no longer return created_database/created_container, rmdb reports id instead of db, rmcon reports id instead of container, both always include dryRun, and sproc/udf/trigger create now report created on success instead of omitting it. theme subcommands report the theme in id with a boolean verb (active, applied, previewed, loaded, saved, edited, opened) rather than encoding the name in the key. cd and pwd return { "type": "location", "database": ..., "container": ..., "currentLocation": ... } — cd no longer returns the "connected state" / "database state" / "container state" keys. connect and disconnect return a "type": "connection" payload, and a successful connect <endpoint> returns { "connected": true, "endpoint": "..." } instead of { "connected state": "..." }. Item listings additionally carry a limitReached flag. Tooling that parses this output must be updated. (#173)
  • Write commands report what they actually did instead of { "result": "success" }. mkitem/create item return { "type": "item", "created": <n>, "replaced": <n>, "failed": <n>, "requestCharge": <ru> }, replace returns replaced/failed/requestCharge, patch returns { "id": ..., "patched": true, "requestCharge": <ru> }, import returns { "file": ..., "imported": <n>, "failed": <n>, "requestCharge": <ru>, "dryRun": <bool> }, and export returns { "file": ..., "exported": <n>, "requestCharge": <ru> }. (#173)

Fixes

  • cd and mkdb built 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 list rendered a single themes column containing the whole JSON array when --output csv or --output table was used, because the shared table renderer only recognized the values/items list envelopes. It now emits one row per theme. (#173)
  • theme list and theme show wrote their human-facing output while the command executed, so --output table printed 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

v1.1.136 Pre-release
Pre-release

Choose a tag to compare

@mkrueger mkrueger released this 20 Jul 16:25
58496c3

Highlights

  • ttl command to view and change a container's time-to-live policy with show/set <seconds>/on/off (#151)
  • conflict command to view and change a container's conflict resolution policy with show/set --mode <lastWriterWins|custom> (#151)
  • bucket command now manages container throughput bucket limits (show/set/clear) in addition to client-side bucket selection (#144)
  • --dry-run previews for throughput write subcommands (#164) and for the destructive delete commands rm/rmcon/rmdb/delete (#156)
  • Structured (JSON) tool results for MCP, surfaced as first-class structuredContent alongside 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 disposed when 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 union merge driver for CHANGELOG.md so 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

v1.1.115 Pre-release
Pre-release

Choose a tag to compare

@mkrueger mkrueger released this 01 Jul 14:30
e16c9a4

Highlights

  • Configurable color theme command to inspect, switch, load, validate, save, edit, and reload shell color themes, with built-in profiles and user themes (#83, #97)
  • Native filter command — a shell-safe, jq-inspired expression language for filtering and reshaping JSON in the pipeline (#67)
  • Change-feed watch (alias tail) to follow a container's change feed as highlighted JSON (#115)
  • index and throughput management for indexing policies and RU/s scaling with confirmation on billable changes (#116, #130)
  • Bulk import/export for JSON Lines / JSON array / CSV round-trip (#95)
  • Server-side programming: sproc, udf, and trigger commands (#124)
  • info command (renamed from settings) reporting usage statistics with --partitions, --detailed, and --format json output (#134, #148)
  • Observability: --diagnostics logs and --otel distributed 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)
  • ls prints 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 settings command has been renamed to info and is no longer available under its old name (#134)
  • The standalone indexpolicy command has been removed and is now an alias of index (#140)
  • Removed the --editor option from theme 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.