cassian run <command>cassian run "python train.py --epochs 50"cassian run --keep "python eval.py"
Provisions an instance (if not already running), syncs your files, runs the command, then tears down the instance. Exit code is passed through.
Options
Flag
Description
Default
--keep
Keep instance running after command finishes
false
Behavior
cassian run "python train.py" → cassian up (if needed) → sync files to /workspace → run command → cassian down (always, even on failure)
If an instance is already running (from a previous cassian up), it reuses it and does NOT tear it down afterward.
Use cases
# Overnight training auto-stops when donecassian run "python train.py --epochs 500"# CI/CD pipelinecassian run "pytest tests/"# Quick one-offcassian run "python -c 'import torch; print(torch.cuda.get_device_name())'"# Keep instance for debugging after runcassian run --keep "python train.py"
Exit codes
The exit code from your command is passed through. If your script exits with code 1, cassian run exits with code 1.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cassian","colors":{"primary":"#4ade80","light":"#86efac","dark":"#4ade80"},"logo":{"light":"https://mintcdn.com/cassian/MnAD_keii-nKmyhY/logo/light.svg?fit=max\u0026auto=format\u0026n=MnAD_keii-nKmyhY\u0026q=85\u0026s=aa9d5a02abce8b9b3c7582c780c7b12d","dark":"https://mintcdn.com/cassian/MnAD_keii-nKmyhY/logo/dark.svg?fit=max\u0026auto=format\u0026n=MnAD_keii-nKmyhY\u0026q=85\u0026s=3e62f5036be6d80173920e81743f8c03"},"favicon":"https://mintcdn.com/cassian/MnAD_keii-nKmyhY/favicon.svg?fit=max\u0026auto=format\u0026n=MnAD_keii-nKmyhY\u0026q=85\u0026s=2da97718b96dac3ddc89f3446657eb1a","appearance":{"default":"dark"},"background":{"color":{"dark":"#09090b"}},"navbar":{"links":[{"href":"https://platform.trycassian.com","label":"Platform"}],"primary":{"type":"button","label":"Get Started","href":"https://platform.trycassian.com"}},"footer":{"socials":{"website":"https://trycassian.com","github":"https://github.com/Cassian-Technologies"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cassian","hasAudioNarration":false,"actualSubdomain":"cassian","customDomains":["docs.trycassian.com"],"gitSource":{"type":"github","owner":"cassian-technologies","repo":"docs","deployBranch":"main","isPrivate":false,"contentDirectory":"","mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae9583cf034dd2525b1df5a:success","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Documentation","count":22},{"language":"default","tag":"CLI Commands","count":12},{"language":"default","tag":"Concepts","count":5},{"language":"default","tag":"Getting Started","count":4},{"language":"default","tag":"For AI Agents","count":1}]},"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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"nav a span.text-white,nav a svg{color:#000000!important}"}],"page":{"pagePath":"cli/run","slug":"/cli/run","pageMetadata":{"title":"cassian run","description":"One-shot: up, sync, exec, down.","href":"/cli/run"},"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: \"One-shot: up, sync, exec, down.\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cassian`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`comman`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cassian`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"python train.py --epochs 50\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cassian`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --keep`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"python eval.py\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Provisions an instance (if not already running), syncs your files, runs the command, then tears down the instance. Exit code is passed through.`}),`\n`,_jsx(Heading,{level:`2`,id:`options`,children:`Options`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--keep`})}),_jsx(_components.td,{children:`Keep instance running after command finishes`}),_jsx(_components.td,{children:`false`})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`behavior`,children:`Behavior`}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,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:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`cassian run \"python train.py\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` → cassian up (if needed)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` → sync files to /workspace`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` → run command`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` → cassian down (always, even on failure)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`If an instance is already running (from a previous `,_jsx(_components.code,{children:`cassian up`}),`), it reuses it and does NOT tear it down afterward.`]}),`\n`,_jsx(Heading,{level:`2`,id:`use-cases`,children:`Use cases`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,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:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Overnight training auto-stops when done`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cassian`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"python train.py --epochs 500\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# CI/CD pipeline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cassian`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pytest tests/\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Quick one-off`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cassian`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"python -c 'import torch; print(torch.cuda.get_device_name())'\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Keep instance for debugging after run`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cassian`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --keep`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"python train.py\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`exit-codes`,children:`Exit codes`}),`\n`,_jsxs(_components.p,{children:[`The exit code from your command is passed through. If your script exits with code 1, `,_jsx(_components.code,{children:`cassian run`}),` exits with code 1.`]})]})}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":"cassian run","description":"One-shot: up, sync, exec, down.","href":"/cli/run"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Options","slug":"options","depth":2,"children":[]},{"title":"Behavior","slug":"behavior","depth":2,"children":[]},{"title":"Use cases","slug":"use-cases","depth":2,"children":[]},{"title":"Exit codes","slug":"exit-codes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"cassian","siteName":"Cassian","title":"cassian run - Cassian","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-29T23:48:55.235Z","originalFileLocation":"cli/run.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=\"dark\"}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=\"One-shot: up, sync, exec, down.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cassian\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cassian/TBTB_NS9152ae3ir/_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/cassian/TBTB_NS9152ae3ir/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cassian/TBTB_NS9152ae3ir/_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/cassian/TBTB_NS9152ae3ir/_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/cassian/TBTB_NS9152ae3ir/_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/cassian/TBTB_NS9152ae3ir/_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/cassian/TBTB_NS9152ae3ir/_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/cassian/TBTB_NS9152ae3ir/_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/cassian/TBTB_NS9152ae3ir/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"cassian run - Cassian\">\u003cmeta data-mint-head property=\"og:description\" content=\"One-shot: up, sync, exec, down.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cassian\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.trycassian.com/cli/run\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cassian.mintlify.site/_mintlify/api/og/v2?division=CLI+Commands\u0026amp;title=cassian+run\u0026amp;description=One-shot%3A+up%2C+sync%2C+exec%2C+down.\u0026amp;theme=393b0dd1414ed36ce7717d64\u0026amp;signature=5977c9c8ed955cb1eec97db4c02ee35eb56f1fc1519af0f0002c1e5ecb9a754e\">\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=\"cassian run - Cassian\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"One-shot: up, sync, exec, down.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cassian.mintlify.site/_mintlify/api/og/v2?division=CLI+Commands\u0026amp;title=cassian+run\u0026amp;description=One-shot%3A+up%2C+sync%2C+exec%2C+down.\u0026amp;theme=393b0dd1414ed36ce7717d64\u0026amp;signature=5977c9c8ed955cb1eec97db4c02ee35eb56f1fc1519af0f0002c1e5ecb9a754e\">\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/cassian/TBTB_NS9152ae3ir/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cassian\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4ade80\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.trycassian.com/cli/run\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/run.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.trycassian.com/#organization\",\"name\":\"Cassian\",\"url\":\"https://docs.trycassian.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cassian/MnAD_keii-nKmyhY/logo/light.svg?fit=max\u0026auto=format\u0026n=MnAD_keii-nKmyhY\u0026q=85\u0026s=aa9d5a02abce8b9b3c7582c780c7b12d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.trycassian.com#website\",\"name\":\"Cassian\",\"url\":\"https://docs.trycassian.com\",\"publisher\":{\"@id\":\"https://docs.trycassian.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.trycassian.com/cli/run#webpage\",\"url\":\"https://docs.trycassian.com/cli/run\",\"name\":\"cassian run\",\"description\":\"One-shot: up, sync, exec, down.\",\"dateModified\":\"2026-05-29T23:48:55.235Z\",\"isPartOf\":{\"@id\":\"https://docs.trycassian.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.trycassian.com/cli/run#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.trycassian.com/cli/run#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CLI Commands\",\"item\":\"https://docs.trycassian.com/cli/init\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"cassian run\",\"item\":\"https://docs.trycassian.com/cli/run\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.trycassian.com/cli/run#article\",\"headline\":\"cassian run\",\"name\":\"cassian run\",\"description\":\"One-shot: up, sync, exec, down.\",\"url\":\"https://docs.trycassian.com/cli/run\",\"mainEntityOfPage\":{\"@id\":\"https://docs.trycassian.com/cli/run#webpage\"},\"dateModified\":\"2026-05-29T23:48:55.235Z\",\"publisher\":{\"@id\":\"https://docs.trycassian.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.trycassian.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cassian\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cassian\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cli/run.md","siteName":"Cassian","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","href":"/authentication"},{"title":"Examples","href":"/examples"}]},{"group":"Concepts","pages":[{"title":"Instances","href":"/concepts/instances"},{"title":"Storage","href":"/concepts/volumes"},{"title":"Persistence","href":"/concepts/persistence"},{"title":"File Sync","href":"/concepts/sync"},{"title":"GPU Types \u0026 Pricing","href":"/concepts/gpu-types"}]},{"group":"CLI Commands","pages":[{"title":"cassian init","href":"/cli/init"},{"title":"cassian up","href":"/cli/up"},{"title":"cassian down","href":"/cli/down"},{"title":"cassian ssh","href":"/cli/ssh"},{"title":"cassian forward","href":"/cli/forward"},{"title":"cassian exec","description":"Run a command on the instance.","href":"/cli/exec"},{"title":"cassian run","href":"/cli/run"},{"title":"cassian logs","description":"View container output and background task logs.","href":"/cli/logs"},{"title":"cassian sync","href":"/cli/sync"},{"title":"cassian status","href":"/cli/status"},{"title":"cassian volume","href":"/cli/volume"},{"title":"cassian switch","href":"/cli/switch"}]},{"group":"For AI Agents","pages":[{"title":"Reference for AI Agents","href":"/ai-agents"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]}]},"basePath":"","title":"cassian run - Cassian","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}