[{"data":1,"prerenderedAt":196},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fv2\u002Fcli\u002Fdeploy":3},{"id":4,"title":5,"body":6,"description":188,"extension":189,"meta":190,"navigation":191,"path":192,"seo":193,"stem":194,"__hash__":195},"docs\u002Fdocs\u002Fv2\u002Fcli\u002Fdeploy.md","axon deploy",{"type":7,"value":8,"toc":184},"minimark",[9,13,21,43,50,53,88,91,96,99,123,127,171,180],[10,11,5],"h1",{"id":12},"axon-deploy",[14,15,16,17,20],"p",{},"Deploy the agent project at the current directory to Axon Cloud. ",[18,19,5],"code",{},"\nis a project command: Axon identifies the project from the working directory,\nthen requires that it is an agent because only agents can run as deployments.\nIt is not nested under an agent subcommand.",[22,23,28],"pre",{"className":24,"code":25,"language":26,"meta":27,"style":27},"language-bash shiki shiki-themes dark-plus","axon deploy\n","bash","",[18,29,30],{"__ignoreMap":27},[31,32,35,39],"span",{"class":33,"line":34},"line",1,[31,36,38],{"class":37},"sCudf","axon",[31,40,42],{"class":41},"sKc5r"," deploy\n",[14,44,45,46,49],{},"Builds the agent, pushes it to Axon's infrastructure, and returns a public URL and API\nkey. Requires ",[18,47,48],{},"axon login",".",[14,51,52],{},"On first deploy:",[22,54,56],{"className":24,"code":55,"language":26,"meta":27,"style":27},"Deployed: https:\u002F\u002F\u003Cyour-agent-url>\nAPI key:  axon_...\n",[18,57,58,76],{"__ignoreMap":27},[31,59,60,63,66,70,73],{"class":33,"line":34},[31,61,62],{"class":37},"Deployed:",[31,64,65],{"class":41}," https:\u002F\u002F",[31,67,69],{"class":68},"sTNBD","\u003C",[31,71,72],{"class":41},"your-agent-ur",[31,74,75],{"class":68},"l>\n",[31,77,79,82,85],{"class":33,"line":78},2,[31,80,81],{"class":37},"API",[31,83,84],{"class":41}," key:",[31,86,87],{"class":41},"  axon_...\n",[14,89,90],{},"Subsequent deploys replace the running revision in the same deployment slot;\nthey do not create another cloud deployment for the agent.",[92,93,95],"h2",{"id":94},"what-changes-in-the-cloud","What changes in the cloud",[14,97,98],{},"The agent source is identical. The runtime environment changes:",[100,101,102,106,113,120],"ul",{},[103,104,105],"li",{},"No TUI — the agent is accessed over HTTP using the server routes you defined",[103,107,108,109,112],{},"Environment values are read from the agent project's ",[18,110,111],{},".env"," at deploy time and are never included in source",[103,114,115,116,119],{},"Durable data persisted to GCS — ",[18,117,118],{},"data\u002F"," is backed by cloud storage, survives restarts",[103,121,122],{},"Isolated process — each agent runs in its own container",[92,124,126],{"id":125},"managing-a-deployed-agent","Managing a deployed agent",[22,128,130],{"className":24,"code":129,"language":26,"meta":27,"style":27},"axon status                 # inspect the deployment for this project\naxon logs --follow          # follow live logs\naxon undeploy --yes         # tear down the deployment\n",[18,131,132,143,157],{"__ignoreMap":27},[31,133,134,136,139],{"class":33,"line":34},[31,135,38],{"class":37},[31,137,138],{"class":41}," status",[31,140,142],{"class":141},"sOLPB","                 # inspect the deployment for this project\n",[31,144,145,147,150,154],{"class":33,"line":78},[31,146,38],{"class":37},[31,148,149],{"class":41}," logs",[31,151,153],{"class":152},"scz_3"," --follow",[31,155,156],{"class":141},"          # follow live logs\n",[31,158,160,162,165,168],{"class":33,"line":159},3,[31,161,38],{"class":37},[31,163,164],{"class":41}," undeploy",[31,166,167],{"class":152}," --yes",[31,169,170],{"class":141},"         # tear down the deployment\n",[14,172,173,174,179],{},"See ",[175,176,178],"a",{"href":177},"\u002Fdocs\u002Fv2\u002Fdeploy\u002Faxon-cloud","Axon Cloud"," for the full deployment guide.",[181,182,183],"style",{},"html pre.shiki code .sCudf, html code.shiki .sCudf{--shiki-default:#DCDCAA}html pre.shiki code .sKc5r, html code.shiki .sKc5r{--shiki-default:#CE9178}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sTNBD, html code.shiki .sTNBD{--shiki-default:#D4D4D4}html pre.shiki code .sOLPB, html code.shiki .sOLPB{--shiki-default:#6A9955}html pre.shiki code .scz_3, html code.shiki .scz_3{--shiki-default:#569CD6}",{"title":27,"searchDepth":78,"depth":78,"links":185},[186,187],{"id":94,"depth":78,"text":95},{"id":125,"depth":78,"text":126},"Deploy the agent project at the current directory to Axon Cloud. axon deploy\nis a project command: Axon identifies the project from the working directory,\nthen requires that it is an agent because only agents can run as deployments.\nIt is not nested under an agent subcommand.","md",{},true,"\u002Fdocs\u002Fv2\u002Fcli\u002Fdeploy",{"title":5,"description":188},"docs\u002Fv2\u002Fcli\u002Fdeploy","ylVpRVSoJW9C1qwtXCGPqTDEMEATklYvX0hlCC1mRHg",1785671806762]