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
- Push to
dev - Validate behavior with invoke
- Publish to
staging - Promote to
prodafter checks