Skip to main content

CLI Common Workflows

This page covers the most common day-to-day CLI flows.

1) List snippets

./velane --api-url http://localhost:8080 --tenant myorg snippets list

2) Push code and publish to dev

./velane --api-url http://localhost:8080 --tenant myorg snippets push handler.ts --publish dev

If the snippet does not exist yet, the CLI creates it and then pushes a new version.

3) List versions

./velane --api-url http://localhost:8080 --tenant myorg versions list <snippet-id>

4) Publish a specific version

./velane --api-url http://localhost:8080 --tenant myorg versions publish <snippet-id> <version-number> staging

5) Invoke a snippet

./velane --api-url http://localhost:8080 --tenant myorg invoke <snippet-slug-or-id> --input '{"name":"world"}'

6) Stream invocation output

./velane --api-url http://localhost:8080 --tenant myorg invoke <snippet-slug-or-id> --stream

Suggested team flow

  1. Push to dev
  2. Validate behavior with invoke
  3. Publish to staging
  4. Promote to prod after checks