Skip to content

Commands

Sandboxes

Manage reusable dependency sets for Function blocks.

sim sandboxes is also spelled sim sandbox.

These commands accept the global options.

List sandboxes

Code
sim sandboxes list [options]

Options

OptionRequiredDescription
--search <value>NoCase-insensitive substring match against the sandbox name.
--sort-by <value>NoField used to sort the result. Do not rely on case-insensitive ordering when sorting by name. Defaults to "name". Accepted values: name, createdAt, updatedAt.
--sort-order <value>NoSort direction. Defaults to "asc". Accepted values: asc, desc.
--limit <n>NoMaximum items to return (0 for everything). Defaults to 0.

API request and response schemas: listSandboxes.

Get sandbox

Code
sim sandboxes get <sandboxId>

Arguments

ArgumentRequiredDescription
sandboxIdYesUnique sandbox identifier.

API request and response schemas: getSandbox.

Create sandbox

OAuth login or personal API key required.

Code
sim sandboxes create [options]

Options

OptionRequiredDescription
--name <value>YesDisplay name, unique within the workspace; 1 to 64 characters.
--language <value>YesDependency ecosystem: javascript installs from npm, python from PyPI. Accepted values: javascript, python.
--dependencies <value...>NoPackage specifiers installed into the sandbox, one per entry. Defaults to []. (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @).
--cli-tools <value...>NoPinned managed CLI ids installed into the sandbox, at most 10, no duplicates. Defaults to []. (space-separated, or @path / @- with one value per line; @@value for a literal leading @).
--system-packages <value...>NoDebian packages installed into the sandbox, one per entry. Defaults to []. (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @).

API request and response schemas: createSandbox.

Update sandbox

OAuth login or personal API key required.

Code
sim sandboxes update <sandboxId> [options]

Arguments

ArgumentRequiredDescription
sandboxIdYesUnique sandbox identifier.

Options

OptionRequiredDescription
--name <value>NoNew display name, unique within the workspace; 1 to 64 characters.
--language <value>NoReplacement dependency ecosystem. The whole spec is revalidated against it, so a Python dependency list does not survive a switch to JavaScript. Accepted values: javascript, python.
--dependencies <value...>NoReplacement package list; replaces the whole list. (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @).
--cli-tools <value...>NoReplacement managed CLI list; replaces the whole list. (space-separated, or @path / @- with one value per line; @@value for a literal leading @).
--system-packages <value...>NoReplacement Debian package list; replaces the whole list. (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @).

API request and response schemas: updateSandbox.

Delete sandbox

OAuth login or personal API key required.

This deletes the sandbox; Function blocks that select it fail until re-pointed.

Code
sim sandboxes delete <sandboxId> [options]

Arguments

ArgumentRequiredDescription
sandboxIdYesUnique sandbox identifier.

Options

OptionRequiredDescription
-y, --yesYesConfirm this operation.

API request and response schemas: deleteSandbox.

Was this helpful?
Suggest an edit