diff --git a/docs/content/docs/get-started/quickstart.mdx b/docs/content/docs/get-started/quickstart.mdx index 3beeb073..7fdb3e75 100644 --- a/docs/content/docs/get-started/quickstart.mdx +++ b/docs/content/docs/get-started/quickstart.mdx @@ -61,13 +61,13 @@ You can run your Cua computer in the cloud (recommended for easiest setup), loca 3. Create a cloud sandbox: ```bash # Linux sandbox (recommended) - cua create --os linux --configuration small --region north-america + cua create --os linux --size small --region north-america # Or Windows sandbox - cua create --os windows --configuration small --region north-america + cua create --os windows --size small --region north-america # Or macOS sandbox - cua create --os macos --configuration small --region north-america + cua create --os macos --size small --region north-america ``` 4. Note your sandbox name and password from the output @@ -472,10 +472,10 @@ Create a cloud sandbox where your AI agents will run: ```bash # Create a Linux sandbox (recommended for most use cases) -cua create --os linux --configuration small --region north-america +cua create --os linux --size small --region north-america # Or create a Windows sandbox -cua create --os windows --configuration small --region north-america +cua create --os windows --size small --region north-america ``` diff --git a/docs/content/docs/libraries/cua-cli/commands.mdx b/docs/content/docs/libraries/cua-cli/commands.mdx index 77e79e13..cb163233 100644 --- a/docs/content/docs/libraries/cua-cli/commands.mdx +++ b/docs/content/docs/libraries/cua-cli/commands.mdx @@ -17,7 +17,7 @@ The CLI supports **two command styles** for flexibility: **Flat style** (quick & concise): ```bash cua list -cua create --os linux --configuration small --region north-america +cua create --os linux --size small --region north-america cua start my-sandbox ``` @@ -129,24 +129,24 @@ test-windows stopped another-pass-456 test-windows.containers.cloud.try Create a new sandbox. ```bash -cua create --os --configuration --region +cua create --os --size --region ``` **Required Options:** - `--os` - Operating system: `linux`, `windows`, `macos` -- `--configuration` - Sandbox size: `small`, `medium`, `large` +- `--size` - Sandbox size: `small`, `medium`, `large` - `--region` - Region: `north-america`, `europe`, `asia-pacific`, `south-america` **Examples:** ```bash # Create a small Linux sandbox in North America -cua create --os linux --configuration small --region north-america +cua create --os linux --size small --region north-america # Create a medium Windows sandbox in Europe -cua create --os windows --configuration medium --region europe +cua create --os windows --size medium --region europe # Create a large macOS sandbox in Asia Pacific -cua create --os macos --configuration large --region asia-pacific +cua create --os macos --size large --region asia-pacific ``` **Response Types:** diff --git a/docs/content/docs/libraries/cua-cli/index.mdx b/docs/content/docs/libraries/cua-cli/index.mdx index b2e19a02..90f1fcc2 100644 --- a/docs/content/docs/libraries/cua-cli/index.mdx +++ b/docs/content/docs/libraries/cua-cli/index.mdx @@ -25,7 +25,7 @@ curl -LsSf https://cua.ai/cli/install.sh | sh cua login # Create a new Linux sandbox -cua create --os linux --configuration small --region north-america +cua create --os linux --size small --region north-america # List your sandboxes cua list diff --git a/libs/typescript/cua-cli/README.md b/libs/typescript/cua-cli/README.md index c79b52a0..eee7d632 100644 --- a/libs/typescript/cua-cli/README.md +++ b/libs/typescript/cua-cli/README.md @@ -29,7 +29,7 @@ bun run ./index.ts -- --help ```bash # Flat style (quick & concise) cua list - cua create --os linux --configuration small --region north-america + cua create --os linux --size small --region north-america cua start cua stop @@ -44,7 +44,7 @@ bun run ./index.ts -- --help - `list` (aliases: `ls`, `ps`) – list all sandboxes - `create` – create a new sandbox - `--os`: `linux`, `windows`, `macos` - - `--configuration`: `small`, `medium`, `large` + - `--size`: `small`, `medium`, `large` - `--region`: `north-america`, `europe`, `asia-pacific`, `south-america` - `delete ` – delete a sandbox - `start ` – start a stopped sandbox diff --git a/libs/typescript/cua-cli/src/commands/sandbox.ts b/libs/typescript/cua-cli/src/commands/sandbox.ts index 550c83f3..723865d1 100644 --- a/libs/typescript/cua-cli/src/commands/sandbox.ts +++ b/libs/typescript/cua-cli/src/commands/sandbox.ts @@ -25,16 +25,16 @@ const listHandler = async (argv: Record) => { const createHandler = async (argv: Record) => { const token = await ensureApiKeyInteractive(); - const { os, configuration, region } = argv as { + const { os, size, region } = argv as { os: string; - configuration: string; + size: string; region: string; }; const res = await http('/v1/vms', { token, method: 'POST', - body: { os, configuration, region }, + body: { os, configuration: size, region }, }); if (res.status === 401) { @@ -246,11 +246,11 @@ export function registerSandboxCommands(y: Argv) { demandOption: true, describe: 'Operating system', }) - .option('configuration', { + .option('size', { type: 'string', choices: ['small', 'medium', 'large'], demandOption: true, - describe: 'Sandbox size configuration', + describe: 'Sandbox size', }) .option('region', { type: 'string', @@ -324,11 +324,11 @@ export function registerSandboxCommands(y: Argv) { demandOption: true, describe: 'Operating system', }) - .option('configuration', { + .option('size', { type: 'string', choices: ['small', 'medium', 'large'], demandOption: true, - describe: 'Sandbox size configuration', + describe: 'Sandbox size', }) .option('region', { type: 'string',