@castari/cli 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/init.js +2 -3
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -110,7 +110,7 @@ async function initDemo() {
|
|
|
110
110
|
},
|
|
111
111
|
include: ['src'],
|
|
112
112
|
});
|
|
113
|
-
await writeFile(join(agentDir, '.env.example'), '
|
|
113
|
+
await writeFile(join(agentDir, '.env.example'), 'CASTARI_CLIENT_ID=your-client-id\nCASTARI_API_KEY=castari_your-api-key\n');
|
|
114
114
|
await writeFile(join(agentDir, 'src', 'agent.ts'), `import { serve } from '@castari/sdk'
|
|
115
115
|
|
|
116
116
|
serve({
|
|
@@ -861,10 +861,9 @@ Or via the Castari Platform Console if available.
|
|
|
861
861
|
## 1) Prepare and deploy the agent
|
|
862
862
|
\`\`\`bash
|
|
863
863
|
cd castari_demo/agent
|
|
864
|
-
cp .env.example .env # add
|
|
864
|
+
cp .env.example .env # add CASTARI_CLIENT_ID, CASTARI_API_KEY
|
|
865
865
|
bun install # pulls @castari/sdk from npm
|
|
866
866
|
castari deploy # builds snapshot castari-demo-agent (CLI must be installed)
|
|
867
|
-
# Optional: bun run src/agent.ts # run locally without the CLI
|
|
868
867
|
\`\`\`
|
|
869
868
|
|
|
870
869
|
## 2) Run the web app
|