Cache-Pot ships its own redis-cli-style shell — cache-pot cli connects to a running server, runs one-shot commands, reads piped scripts, and supports TLS.
cache-pot cli is a small, dependency-free RESP2 shell built into the same binary as the server. Use it anywhere you’d reach for redis-cli — interactively, as a one-shot command, or piping in a script — without installing anything extra.
Quick start
With no arguments it opens an interactive prompt against localhost:6379:
cache-pot cli
Cache-Pot CLI — connected to localhost:6379Type a command, "help" for tips, or "exit" to quit.localhost:6379> SET hello worldOKlocalhost:6379> GET hello"world"localhost:6379> exit
Replies are formatted the way redis-cli formats them — bulk strings quoted, integers tagged (integer), arrays numbered, missing keys shown as (nil), errors prefixed (error).
One-shot commands
Pass the command as trailing arguments and the CLI runs it, prints the reply, and exits — no prompt, no loop:
cache-pot cli PING# PONGcache-pot cli GET hello# "world"
This drops straight into shell scripts and CI checks.
Scripting: piped input
When stdin isn’t a terminal, the CLI reads one command per line and runs each in sequence, still connected to the same server:
--tls-insecure disables server identity verification entirely. It’s fine for a local self-signed cert while developing, but never point it at anything on a network you don’t trust.
Shell commands
Besides any Redis or Cache-Pot command, the interactive prompt understands:
Command
Effect
help
Print a short command cheat sheet
clear
Clear the screen
exit / quit
Close the connection and leave
Quoting and escapes
Arguments follow the same quoting rules as redis-cli: single quotes are literal, double quotes support \n, \r, \t, \\, \", and \xHH byte escapes.
localhost:6379> SET note "line one\nline two"OKlocalhost:6379> STRLEN note(integer) 13
History
Interactive sessions append every command to ~/.cache-pot_history. It’s a plain append-only text file — there’s no readline-style in-session recall yet, but the file is there if you want to grep past commands or feed them back in with cache-pot cli < ~/.cache-pot_history.
Because the CLI speaks plain RESP, it works against any Redis-compatible server, not just Cache-Pot — handy for comparing behavior side by side. See Benchmarking for the same idea applied to load testing.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Cache-Pot","colors":{"primary":"#354dc4","light":"#94a4e4","dark":"#040404"},"favicon":"https://mintcdn.com/cache-pot/jaPVeYuoKuH3pJ7K/favicon.svg?fit=max\u0026auto=format\u0026n=jaPVeYuoKuH3pJ7K\u0026q=85\u0026s=8994a540ba087074e755f8177dd3d8c4","navbar":{"primary":{"type":"github","href":"https://github.com/subh05sus/cache-pot"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cache-pot","hasAudioNarration":false,"actualSubdomain":"cache-pot","customDomains":["cache-pot.thatdevguy.in"],"gitSource":{"type":"github","owner":"subh05sus","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae95bd2e1186677be46c81f:success","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Documentation","count":20},{"language":"default","tag":"Commands","count":14},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Data Types","count":5},{"language":"default","tag":"Core Concepts","count":5},{"language":"default","tag":"Advanced","count":4},{"language":"default","tag":"AI Extensions","count":3},{"language":"default","tag":"Configuration","count":3},{"language":"default","tag":"Dashboard","count":3},{"language":"default","tag":"Get Started","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"guides/cli","slug":"/guides/cli","pageMetadata":{"title":"cache-pot cli: an interactive RESP shell","sidebarTitle":"CLI","description":"Cache-Pot ships its own redis-cli-style shell — cache-pot cli connects to a running server, runs one-shot commands, reads piped scripts, and supports TLS.","href":"/guides/cli"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Cache-Pot ships its own redis-cli-style shell — cache-pot cli connects to a running server, runs one-shot commands, reads piped scripts, and supports TLS.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`cache-pot cli`}),` is a small, dependency-free RESP2 shell built into the same binary as the server. Use it anywhere you’d reach for `,_jsx(_components.code,{children:`redis-cli`}),` — interactively, as a one-shot command, or piping in a script — without installing anything extra.`]}),`\n`,_jsx(Heading,{level:`2`,id:`quick-start`,children:`Quick start`}),`\n`,_jsxs(_components.p,{children:[`With no arguments it opens an interactive prompt against `,_jsx(_components.code,{children:`localhost:6379`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cache-pot`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cli`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Cache-Pot CLI — connected to localhost:6379`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Type a command, \"help\" for tips, or \"exit\" to quit.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`localhost:6379> SET hello world`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`OK`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`localhost:6379> GET hello`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`\"world\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`localhost:6379> exit`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Replies are formatted the way `,_jsx(_components.code,{children:`redis-cli`}),` formats them — bulk strings quoted, integers tagged `,_jsx(_components.code,{children:`(integer)`}),`, arrays numbered, missing keys shown as `,_jsx(_components.code,{children:`(nil)`}),`, errors prefixed `,_jsx(_components.code,{children:`(error)`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`one-shot-commands`,children:`One-shot commands`}),`\n`,_jsx(_components.p,{children:`Pass the command as trailing arguments and the CLI runs it, prints the reply, and exits — no prompt, no loop:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cache-pot`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cli`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PING`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# PONG`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cache-pot`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cli`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` hello`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# \"world\"`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This drops straight into shell scripts and CI checks.`}),`\n`,_jsx(Heading,{level:`2`,id:`scripting-piped-input`,children:`Scripting: piped input`}),`\n`,_jsx(_components.p,{children:`When stdin isn’t a terminal, the CLI reads one command per line and runs each in sequence, still connected to the same server:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cat`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`'EOF'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` cache-pot`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cli`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SET job:1 queued`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`INCR jobs:total`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`HSET job:1 status queued`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`EOF`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Output is the same reply-per-line format as interactive mode, just without the prompt.`}),`\n`,_jsx(Heading,{level:`2`,id:`connecting`,children:`Connecting`}),`\n`,_jsx(ParamField,{name:`--addr`,type:`string`,default:`localhost:6379`,children:_jsxs(_components.p,{children:[`Server address (`,_jsx(_components.code,{children:`host:port`}),`). Also read from `,_jsx(_components.code,{children:`CACHEPOT_ADDR`}),`.`]})}),`\n`,_jsx(ParamField,{name:`--auth`,type:`string`,default:``,children:_jsxs(_components.p,{children:[`Password sent via `,_jsx(_components.code,{children:`AUTH`}),` immediately after connecting. Also read from `,_jsx(_components.code,{children:`CACHEPOT_AUTH`}),`.`]})}),`\n`,_jsx(ParamField,{name:`--tls`,type:`flag`,children:_jsx(_components.p,{children:`Connect over TLS instead of plaintext.`})}),`\n`,_jsx(ParamField,{name:`--tls-cacert`,type:`string`,default:``,children:_jsx(_components.p,{children:`CA certificate (PEM) used to verify the server’s certificate chain.`})}),`\n`,_jsx(ParamField,{name:`--tls-insecure`,type:`flag`,children:_jsx(_components.p,{children:`Skip certificate verification — useful for self-signed certs in development. Never use this against a server you don’t control.`})}),`\n`,_jsx(ParamField,{name:`--no-color`,type:`flag`,children:_jsx(_components.p,{children:`Disable ANSI colors in output, useful when piping to a file or a program that doesn’t expect escape codes.`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cache-pot`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cli`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --addr`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` db.internal:6379`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --tls`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --tls-cacert`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ca.pem`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--tls-insecure`}),` disables server identity verification entirely. It’s fine for a local self-signed cert while developing, but never point it at anything on a network you don’t trust.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`shell-commands`,children:`Shell commands`}),`\n`,_jsx(_components.p,{children:`Besides any Redis or Cache-Pot command, the interactive prompt understands:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Command`}),_jsx(_components.th,{children:`Effect`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`help`})}),_jsx(_components.td,{children:`Print a short command cheat sheet`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`clear`})}),_jsx(_components.td,{children:`Clear the screen`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`exit`}),` / `,_jsx(_components.code,{children:`quit`})]}),_jsx(_components.td,{children:`Close the connection and leave`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`quoting-and-escapes`,children:`Quoting and escapes`}),`\n`,_jsxs(_components.p,{children:[`Arguments follow the same quoting rules as `,_jsx(_components.code,{children:`redis-cli`}),`: single quotes are literal, double quotes support `,_jsx(_components.code,{children:`\\\\n`}),`, `,_jsx(_components.code,{children:`\\\\r`}),`, `,_jsx(_components.code,{children:`\\\\t`}),`, `,_jsx(_components.code,{children:`\\\\\\\\`}),`, `,_jsx(_components.code,{children:`\\\\\"`}),`, and `,_jsx(_components.code,{children:`\\\\xHH`}),` byte escapes.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`localhost:6379> SET note \"line one\\\\nline two\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`OK`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`localhost:6379> STRLEN note`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`(integer) 13`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`history`,children:`History`}),`\n`,_jsxs(_components.p,{children:[`Interactive sessions append every command to `,_jsx(_components.code,{children:`~/.cache-pot_history`}),`. It’s a plain append-only text file — there’s no readline-style in-session recall yet, but the file is there if you want to grep past commands or feed them back in with `,_jsx(_components.code,{children:`cache-pot cli \u003c ~/.cache-pot_history`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Because the CLI speaks plain RESP, it works against any Redis-compatible server, not just Cache-Pot — handy for comparing behavior side by side. See `,_jsx(_components.a,{href:`/guides/benchmarking`,children:`Benchmarking`}),` for the same idea applied to load testing.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"cache-pot cli: an interactive RESP shell","sidebarTitle":"CLI","description":"Cache-Pot ships its own redis-cli-style shell — cache-pot cli connects to a running server, runs one-shot commands, reads piped scripts, and supports TLS.","href":"/guides/cli"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Quick start","slug":"quick-start","depth":2,"children":[]},{"title":"One-shot commands","slug":"one-shot-commands","depth":2,"children":[]},{"title":"Scripting: piped input","slug":"scripting-piped-input","depth":2,"children":[]},{"title":"Connecting","slug":"connecting","depth":2,"children":[]},{"title":"Shell commands","slug":"shell-commands","depth":2,"children":[]},{"title":"Quoting and escapes","slug":"quoting-and-escapes","depth":2,"children":[]},{"title":"History","slug":"history","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"cache-pot","siteName":"Cache-Pot","title":"cache-pot cli: an interactive RESP shell - Cache-Pot","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-09T12:09:07.553Z","originalFileLocation":"guides/cli.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Cache-Pot ships its own redis-cli-style shell — cache-pot cli connects to a running server, runs one-shot commands, reads piped scripts, and supports TLS.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cache-Pot\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cache-pot/p8n20i3bqKZw87FA/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cache-pot/p8n20i3bqKZw87FA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cache-pot/p8n20i3bqKZw87FA/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cache-pot/p8n20i3bqKZw87FA/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cache-pot/p8n20i3bqKZw87FA/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cache-pot/p8n20i3bqKZw87FA/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cache-pot/p8n20i3bqKZw87FA/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cache-pot/p8n20i3bqKZw87FA/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cache-pot/p8n20i3bqKZw87FA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"cache-pot cli: an interactive RESP shell - Cache-Pot\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cache-Pot ships its own redis-cli-style shell — cache-pot cli connects to a running server, runs one-shot commands, reads piped scripts, and supports TLS.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cache-Pot\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://cache-pot.thatdevguy.in/guides/cli\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cache-pot.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=cache-pot+cli%3A+an+interactive+RESP+shell\u0026amp;description=Cache-Pot+ships+its+own+redis-cli-style+shell+%E2%80%94+cache-pot+cli+connects+to+a+running+server%2C+runs+one-shot+commands%2C+reads+piped+scripts%2C+and+supports+TLS.\u0026amp;theme=fba809c5a30670d77c810a28\u0026amp;signature=e0c359939e72f63e03db5b4bbfd4d1dfe35b88d8ffcf70316a6f7e2248b88dd4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"cache-pot cli: an interactive RESP shell - Cache-Pot\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cache-Pot ships its own redis-cli-style shell — cache-pot cli connects to a running server, runs one-shot commands, reads piped scripts, and supports TLS.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cache-pot.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=cache-pot+cli%3A+an+interactive+RESP+shell\u0026amp;description=Cache-Pot+ships+its+own+redis-cli-style+shell+%E2%80%94+cache-pot+cli+connects+to+a+running+server%2C+runs+one-shot+commands%2C+reads+piped+scripts%2C+and+supports+TLS.\u0026amp;theme=fba809c5a30670d77c810a28\u0026amp;signature=e0c359939e72f63e03db5b4bbfd4d1dfe35b88d8ffcf70316a6f7e2248b88dd4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cache-pot/p8n20i3bqKZw87FA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cache-Pot\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#354dc4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://cache-pot.thatdevguy.in/guides/cli\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/cli.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://cache-pot.thatdevguy.in/#organization\",\"name\":\"Cache-Pot\",\"url\":\"https://cache-pot.thatdevguy.in\"},{\"@type\":\"WebSite\",\"@id\":\"https://cache-pot.thatdevguy.in#website\",\"name\":\"Cache-Pot\",\"url\":\"https://cache-pot.thatdevguy.in\",\"publisher\":{\"@id\":\"https://cache-pot.thatdevguy.in/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://cache-pot.thatdevguy.in/guides/cli#webpage\",\"url\":\"https://cache-pot.thatdevguy.in/guides/cli\",\"name\":\"cache-pot cli: an interactive RESP shell\",\"description\":\"Cache-Pot ships its own redis-cli-style shell — cache-pot cli connects to a running server, runs one-shot commands, reads piped scripts, and supports TLS.\",\"dateModified\":\"2026-07-09T12:09:07.553Z\",\"isPartOf\":{\"@id\":\"https://cache-pot.thatdevguy.in#website\"},\"breadcrumb\":{\"@id\":\"https://cache-pot.thatdevguy.in/guides/cli#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://cache-pot.thatdevguy.in/guides/cli#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://cache-pot.thatdevguy.in/guides/redis-migration\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"cache-pot cli: an interactive RESP shell\",\"item\":\"https://cache-pot.thatdevguy.in/guides/cli\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://cache-pot.thatdevguy.in/guides/cli#article\",\"headline\":\"cache-pot cli: an interactive RESP shell\",\"name\":\"cache-pot cli: an interactive RESP shell\",\"description\":\"Cache-Pot ships its own redis-cli-style shell — cache-pot cli connects to a running server, runs one-shot commands, reads piped scripts, and supports TLS.\",\"url\":\"https://cache-pot.thatdevguy.in/guides/cli\",\"mainEntityOfPage\":{\"@id\":\"https://cache-pot.thatdevguy.in/guides/cli#webpage\"},\"dateModified\":\"2026-07-09T12:09:07.553Z\",\"publisher\":{\"@id\":\"https://cache-pot.thatdevguy.in/#organization\"},\"isPartOf\":{\"@id\":\"https://cache-pot.thatdevguy.in#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cache-Pot\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cache-Pot\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/cli.md","siteName":"Cache-Pot","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Cache-Pot: Redis-compatible cache built for AI applications","sidebarTitle":"Introduction","href":"/introduction"},{"title":"Get started with Cache-Pot in under 5 minutes","sidebarTitle":"Quickstart","href":"/quickstart"},{"title":"Install Cache-Pot: Go, Docker, or build from source","sidebarTitle":"Installation","href":"/installation"}]},{"group":"Core Concepts","pages":[{"title":"Cache-Pot data types: strings, hashes, lists, sets, vectors","sidebarTitle":"Data Types","href":"/concepts/data-types"},{"title":"Persistence in Cache-Pot: snapshots and append-only file","sidebarTitle":"Persistence","href":"/concepts/persistence"},{"title":"Semantic caching: cache LLM responses by prompt meaning","sidebarTitle":"Semantic Cache","href":"/concepts/semantic-cache"},{"title":"Vector store: cosine similarity search in Cache-Pot","sidebarTitle":"Vector Store","href":"/concepts/vector-store"},{"title":"Agent memory: persistent key-value state for AI sessions","sidebarTitle":"Agent Memory","href":"/concepts/agent-memory"}]},{"group":"Configuration","pages":[{"title":"Configure the Cache-Pot server: ports, auth, persistence","sidebarTitle":"Server Config","href":"/configuration/server"},{"title":"Configure embeddings for semantic caching in Cache-Pot","sidebarTitle":"Embeddings","href":"/configuration/embeddings"},{"title":"Configure and access the Cache-Pot web dashboard UI","sidebarTitle":"Dashboard","href":"/configuration/dashboard"}]},{"group":"Guides","pages":[{"title":"Migrate from Redis to Cache-Pot without changing code","sidebarTitle":"Redis Migration","href":"/guides/redis-migration"},{"title":"AI agent patterns with Cache-Pot: semantic cache and memory","sidebarTitle":"AI Agents","href":"/guides/ai-agents"},{"title":"Connect Claude to Cache-Pot using the built-in MCP server","sidebarTitle":"MCP Integration","href":"/guides/mcp-integration"},{"title":"Run Cache-Pot with Docker: images, volumes, and Compose","sidebarTitle":"Docker","description":"Pull the official Cache-Pot Docker image, mount a data volume for persistence, and configure via environment variables in a docker-compose.yml.","href":"/guides/docker"},{"title":"cache-pot cli: an interactive RESP shell","sidebarTitle":"CLI","href":"/guides/cli"},{"title":"Benchmarking Cache-Pot: cache-pot bench","sidebarTitle":"Benchmarking","description":"cache-pot bench is a built-in load generator, modeled on redis-benchmark, that reports throughput and latency percentiles per command — and works against real Redis too.","href":"/guides/benchmarking"}]},{"group":"Dashboard","pages":[{"title":"Cache-Pot dashboard: monitor your server in real time","sidebarTitle":"Overview","href":"/dashboard/overview"},{"title":"Browse, search, and edit keys in the Cache-Pot dashboard","sidebarTitle":"Key Browser","href":"/dashboard/key-browser"},{"title":"Run RESP commands interactively in the Cache-Pot Workbench","sidebarTitle":"Workbench","href":"/dashboard/workbench"}]}]},{"tab":"Commands","pages":[{"title":"Commands","href":"/commands/connection"}]}]},"basePath":"","title":"cache-pot cli: an interactive RESP shell - Cache-Pot","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}