Command Reference
Every laser command grouped like the Console, with its main flags and examples
This page lists laser commands in the order of the Console. Run laser <group> --help, or laser <group> <command> --help, for every flag. Every command also takes the global flags, including -w and -d for the scope. Groups accept their plural too, for example laser streams list.
auth, context, version, update, docs, and pricing work without signing in. Every other command needs a signed-in context or an API key supplied for the invocation. The examples use a workspace named main with the deployments orders and payments.
Command Tree
auth login | status | logout | purge
context create | list | show | use | current | delete | rename
org show | update | summary | structure
settings show | update
member list | update | remove | permissions
invitation list | create | cancel
role list | show | create | update | delete | assign | revoke | members
key list | show | create | delete | security | whoami
cloud-account list | show | create | update | delete
billing show | update-info | payment-method | remove-payment-method | credits | redeem | marketplace
invoice (list | show) | report (list | show)
notification channel (list | show | create | update | delete | test | history)
subscription (list | add | set | delete) | types
audit list | types
workspace list | show | use | create | update | delete
env list | show | create | update | delete
activity
deployment list | show | use | watch | seed | delete
create managed | byoc | starter | preview | byoc-setup | byoc-validate
options (clouds | regions | tiers | clusters | storages)
monitor metrics | throughput | heartbeats | health | readiness | logs | activity
snapshot (list | create | delete | download) | task (list | show)
connect show | network | mcp | access-rule (list | add | delete | allow-my-ip)
peering (list | create | delete | instructions)
private-link (list | create | delete | instructions | connections)
connector list | show | catalog | add | delete
backend list | show | configure (embedded | postgres | velodb) | enable | disable
settings show | rename | move | update | data-access | metadata-sync | retention | spend-limit
config (list | show | schema | create | activate | delete) | plan (show | upgrade)
runtime (start | stop | restart | upgrade) | backup (list | show | create | delete | restore)
cluster | whoami | capabilities
client list | show
user list | show | create | update | password | permissions | delete | roles | bind-roles
role list | show | define | delete | users | assign | revoke
agent list | show | streams | connections
session list | show | events | state | links | sources | changes
conversation list | show
memory namespaces | list | show | forget
graph list | show | register | drop | neighbors | nodes | query
stream list | show | create | update | delete
topic list | show | create | update | delete | partitions | producers
group list | show | create | delete | policy
message read | send
query run
projection list | show | register | drop | bind | unbind
filter list | show | revisions | bindings | binding | operation | metrics
validate | test | preview
register | revise | describe | pause | resume | bind | unbind | archive | drop | configure-group
kv namespaces | scan | get | set | cas | delete | delete-many
fork list | create | put-row | promote | delete
schema list | show | register | drop | decode
dlq list
find <text>
pricing get | estimate (managed | byoc)
version | update | docs | tuiSign In and Contexts
laser auth login
laser auth login --org 615380456123456789
laser auth login --context staging --api-key "$LD_API_KEY"
laser auth status
laser auth logout --all
laser context create prod --activate
laser context use prodauth login validates the key, binds its organization, and stores it in the OS keyring. --context names the context to update, the active one or default by default. auth logout removes the keyring entry and keeps the context. auth purge deletes every context, key, and config file. Sign In and Contexts cover both groups.
Organization
The organization area of the Console. organization and orgs are aliases for org.
Overview
laser org show
laser org summary
laser org structure
laser org update --description "Payments platform" --email ops@example.comshow returns the details, the plan, and the workspace, environment, and deployment totals. structure prints the workspaces, environments, and deployments as a tree. update takes --name, --description, --email, and --protected. With delete protection on, deleting the organization needs a code sent by email.
Settings
laser org settings show
laser org settings update --join-policy invite_only --block-external-invitations truesettings update changes --protected, --join-policy (invite_only, open, or request_to_join), --block-external-invitations, and --enforce-domain-only-invitations. Flags left out keep the stored value. The invitation rules apply when the organization has a claimed email domain.
Members and Invitations
laser org member list --active true
laser org member update 615380456123456790 --role 615380456123456801 --role 615380456123456802
laser org member remove 615380456123456790
laser org member permissions
laser org invitation list
laser org invitation create ana@example.com --role 615380456123456801
laser org invitation cancel 615380456123456811member update replaces the member's roles with the repeated --role values, or turns the member on or off with --active. member remove takes away access to the organization and all of its workspaces, environments, and deployments. member permissions prints the catalog of grants a role can hold. invitation cancel has the alias revoke.
Roles
laser org role list
laser org role show developer
laser org role show 615380456123456801
laser org role create deploy-readers --workspace-permission environment:read --environment-permission deployment:read --environment-permission deployment:telemetry:read
laser org role update 615380456123456801 --name deploy-viewers
laser org role assign 615380456123456801 615380456123456790 615380456123456791
laser org role revoke 615380456123456801 615380456123456791
laser org role members 615380456123456801
laser org role delete 615380456123456801Organization role reads, membership changes, updates, and deletion accept an ID or an exact role name. The CLI resolves names through the paged role list.
Each permission flag is repeatable. --organization-permission grants at the organization, --workspace-permission in every workspace, and --environment-permission in every environment. role update replaces the grants of each scope you pass and keeps the others. A grant limited to one workspace or environment needs the API. Run laser org member permissions for the valid grants. Roles and Permissions explains the model.
API Keys
laser org key list
laser org key show 615380456123456821
laser org key create ci-deployer --role 615380456123456801 --expires-in-days 90 --allowed-ip 203.0.113.7
laser org key create ingest -w main --workspace-scoped --role 615380456123456801
laser org key security 615380456123456821 --validate-ip true --allowed-ip 203.0.113.7 --allowed-ip 198.51.100.4
laser org key delete 615380456123456821
laser org key whoamikey create takes a --role, or custom grants with the same permission flags as role create. Keys expire after 30 days unless --expires-in-days says otherwise. --workspace-scoped limits the key to the selected workspace. The secret is printed once, so save it when it appears. key security replaces the allowed addresses, and --clear-allowed-ips removes them all. key whoami shows the key this CLI signs in with. keys and api-key are aliases for key. See API Keys.
Cloud Accounts
laser org cloud-account list --cloud aws
laser org cloud-account show 615380456123456831
laser org cloud-account create prod-aws --cloud aws --account-id 123456789012 --region eu-west-1 --iam-role-arn arn:aws:iam::123456789012:role/laserdata --external-id 7f3c2a
laser org cloud-account update 615380456123456831 --status inactive
laser org cloud-account delete 615380456123456831Cloud accounts register an AWS account or a GCP project for VPC peering and BYOC. --account-id takes the AWS account id or the GCP project id. AWS accounts take --iam-role-arn, --external-id, and --vpc-id, GCP projects take --vpc-network, and both take --vpc-cidr. update changes only the flags you pass.
Billing
laser org billing show
laser org billing update-info --company "Example Inc." --country US --email billing@example.com
laser org billing payment-method
laser org billing credits
laser org billing redeem WELCOME100
laser org billing invoice list --status paid
laser org billing invoice show 615380456123456841 --pdf invoice.pdf
laser org billing report list
laser org billing marketplace --cloud gcpupdate-info changes the billing recipient printed on invoices. It changes only the flags you pass and needs a name or a company. A redeemed promo code becomes a credit, and invoices consume credits oldest first. invoice show --pdf also saves the PDF of an approved or paid invoice. report lists usage reports per deployment. marketplace lists AWS agreements or GCP entitlements linked to the organization. remove-payment-method removes the stored card. Adding a card runs in the browser, so use the Console for it.
Notifications
laser org notification channel create ops-slack --kind slack --destination https://hooks.slack.com/services/T000/B000/XXXX --slack-channel "#alerts"
laser org notification channel list
laser org notification channel test 615380456123456851
laser org notification channel update 615380456123456851 --enabled false
laser org notification channel history 615380456123456851
laser org notification types
laser org notification subscription add 615380456123456851 --type replication_condition --scope-deployment orders
laser org notification subscription list 615380456123456851
laser org notification channel list --workspace-channels -w mainNotification channels send alerts to Slack, a webhook, or email. --kind decides whether --destination takes a Slack or webhook https URL, or an email address. Slack channels also take --slack-channel, --slack-username, and --slack-icon-emoji, and webhooks take --webhook-method and repeated --webhook-header NAME=VALUE. A subscription selects event types with repeated --type, optionally limited with --scope-workspace, --scope-environment, or --scope-deployment. --workspace-channels works with the channels of the selected workspace, the Console's workspace settings, instead of the organization's.
Audit Log
laser org audit list --from 2026-11-01 --type member_updated
laser org audit list -w main -d orders --author 615380456123456790
laser org audit typesThe audit log lists who changed what, newest first. Filter it with repeated --type, --from and --to (RFC 3339 or YYYY-MM-DD in UTC), --correlation-id, --author for the member who acted, --user for the member the event is about, --key for the API key used, and --env. -w and -d narrow it to one workspace or deployment.
Workspace
laser workspace list
laser workspace use main
laser workspace show
laser workspace show --full -o json
laser workspace create --name analytics --description "Analytics team" --yes
laser workspace update -w analytics --protected true
laser workspace delete -w analyticsworkspace show --full includes the last hour of throughput for recent deployments, read from each deployment's own zone. Errors and reporting counts remain in the response.
workspace show is the workspace overview: deployments, health, agent sessions, streams, and recent activity. use saves the workspace in the context and has the alias switch. create and update take --name, --description, --email, and --protected. create prompts for missing values on a terminal and shows a summary to confirm, and --yes skips the confirmation. delete removes the workspace with its environments and deployments. ws is an alias for workspace.
Environments
laser env list
laser env show production
laser env create --name staging --yes
laser env update staging --protected true
laser env delete stagingEnvironments group the deployments of the workspace. See Organization for the hierarchy. environment and envs are aliases for env.
A protected workspace, environment, or deployment emails a confirmation code when you delete it. Run the delete again with --code. An unprotected one asks you to type its name unless --yes is passed.
Activity
laser activity --from 24h
laser activity --env production --resource topic --action deleted
laser activity --kind change --from 7dactivity is the workspace's change log across its deployments: streams, topics, consumer groups, users, tokens, roles, consumer filters, projections, forks, and schemas. Filter it with --env, --kind (change, gap, or skipped), --resource, and --action (created, updated, deleted, partitions_changed, password_changed, permissions_updated, defined, or bindings_updated). --from and --to take RFC 3339 or an age such as 30m, 24h, or 7d. The plan's retention limits how far back it reads.
Deployments
dep and deployments are aliases for deployment. Commands that act on one deployment use the scope, or -d.
List and Scope
laser deployment list
laser deployment list --health degraded,unavailable --sort storage_used_percent
laser deployment list --env production --name orders -o json
laser deployment use orders
laser deployment use --all
laser deployment watch -d orders
laser deployment seed -d payments --wait
laser deployment delete -d paymentslist shows every deployment of the workspace with its live health, storage, connections, and agent sessions, merged across zones. Filter it with --env and --health (comma separated), and --name. Sort it with --sort, such as name, health, storage_used, storage_used_percent, connections, agent_sessions_active, streams, or topics, and --order asc or desc.
use scopes data commands to one deployment, and --all clears the scope. watch waits until the running operation ends and every requested settings change is applied. It reads every 5 seconds, set with --interval-secs from 2 to 60, and gives up after 60 minutes, set with --timeout-mins. seed adds demo data, a demo stream with projections and agent sessions, and --wait follows the seed task.
Create
laser deployment create options clouds
laser deployment create options regions --cloud aws
laser deployment create options tiers --cloud aws --region eu-west-1
laser deployment create options clusters --cloud aws --region eu-west-1
laser deployment create options storages --cloud aws --region eu-west-1
laser deployment create starter --cloud gcp --region us-central1 --new-env sandbox
laser deployment create preview --cloud aws --region eu-west-1 --managed-tier standard --tier small --storage-type network_balanced --storage-size-gb 100
laser deployment create managed --env production --name orders --cloud aws --region eu-west-1 --managed-tier performance --tier large --cluster cluster --storage-type network_balanced --storage-size-gb 500 --spend-limit 3000 --yesFree deployment defaults read deployment create options regions --cloud CLOUD --tier free. Only regions returned by the API are offered. Enabled-region and free-tier availability configuration remain authoritative.
options lists the clouds, regions, compute profiles, cluster kinds, and storage types the organization can use. starter creates the free starter deployment, on AWS us-east-1 unless --cloud and --region say otherwise, in an existing environment with --env or a new one with --new-env. preview estimates the monthly price of a managed deployment without creating it.
managed and byoc take --env, --name, --cloud, --region, --tier for the compute profile, --cluster (standalone or cluster), --storage-type, --storage-size-gb per node, and --availability-mode (single_az or multi_az). managed adds --managed-tier (standard, performance, or enterprise), --network-scope, --target-network-tput in KB/s, and --dedicated. Both take --protected, --encrypted, --public-ip-enabled, --subdomain-enabled, --telemetry-days, --spend-limit in USD per month, and --data-access or --no-data-access. A managed deployment needs a public IP for data access. Paid deployments are a three node cluster. On a terminal, missing values prompt and a summary asks for confirmation, which --yes skips. Tiers & Storage describes the choices.
A BYOC deployment takes three steps. byoc-setup prints the cloud setup the deployment needs and the URL that byoc-validate takes as --supervisor-url. byoc-validate checks your credentials, and byoc creates the deployment:
laser deployment create byoc-setup --cloud aws --region eu-west-1
laser deployment create byoc-validate --supervisor-url https://byoc-check.example.com --cloud aws --region eu-west-1 --aws-account-id 123456789012 --aws-identity-arn arn:aws:iam::123456789012:role/laserdata --aws-external-id 7f3c2a --aws-vpc-id vpc-0abc
laser deployment create byoc --name orders-byoc --cloud aws --region eu-west-1 --tier large --cluster cluster --storage-type network_balanced --storage-size-gb 500 --availability-mode single_az --aws-account-id 123456789012 --aws-identity-arn arn:aws:iam::123456789012:role/laserdata --aws-external-id 7f3c2a --aws-vpc-id vpc-0abc --aws-vpc-cidr 10.0.0.0/16GCP takes --gcp-project-id, --gcp-service-account-email, and --gcp-vpc-name in place of the AWS flags.
Overview
laser deployment show -d ordersThe Overview tab: details, settings requested against applied, member health, and nodes.
Monitor
laser deployment monitor health
laser deployment monitor metrics
laser deployment monitor metrics --full -o json
laser deployment monitor metrics --node 3 --runtime iggy --from 2026-11-11T08:00:00Z
laser deployment monitor throughput --interval 5m --from 2026-11-11T00:00:00Z
laser deployment monitor heartbeats
laser deployment monitor readiness --node 3
laser deployment monitor logs --runtime connectors --level error --message timeout
laser deployment monitor activity --resource topic --action deleted
laser deployment monitor snapshot create --node 3
laser deployment monitor snapshot list
laser deployment monitor snapshot download 615380456123456861
laser deployment monitor task list --active
laser deployment monitor task show 615380456123456871deployment monitor metrics --full combines metrics, throughput for the last hour, health, and heartbeats. Failed supplementary sections are null and include an error. It does not combine with node, runtime, date, or pagination filters.
health shows the serving health of nodes, runtimes, connectors, and the running operation. metrics and heartbeats show the latest values of every node, or of one node with --node. Adding --runtime (iggy, connectors, or connector:<id>) pages that runtime's history on the node between --from and --to. throughput returns network throughput in buckets from 10s to 1d set with --interval, the last hour in 30 second buckets by default, and at most 1440 buckets.
logs reads runtime logs, iggy by default, filtered with --node, --scope, --level (error, warn, info, debug, trace, or any), --message, --from, and --to. Logs come in pages, so run the command again for new lines. activity lists the operations LaserData ran on the deployment and the changes inside it.
snapshot create captures a diagnostic snapshot of every node, or the repeated --node values. Secrets are masked unless --redact-secrets false, and a streaming server snapshot is included unless --include-iggy false. snapshot download prints a signed download address. task lists node tasks, newest first.
Connect
laser deployment connect show
laser deployment connect show --reveal
laser deployment connect show --reveal --root
laser deployment connect credentials rotate admin
laser deployment connect credentials rotate root --yes
laser deployment connect access-rule list
laser deployment connect access-rule add --name office --cidr 203.0.113.7/32 --protocol tcp --protocol http --valid-to 2026-12-31T23:59:59Z
laser deployment connect access-rule delete 615380456123456881
laser deployment connect access-rule allow-my-ip --protocol tcp
laser deployment connect mcp
laser deployment connect mcp --client claude-code
laser deployment connect network
laser deployment connect peering create --name prod-vpc --peer-vpc-cidr 10.20.0.0/16 --peer-vpc-id vpc-0abc --peer-owner-id 123456789012
laser deployment connect peering list
laser deployment connect peering instructions 615380456123456911
laser deployment connect private-link create --name orders-endpoint --allowed-principal arn:aws:iam::123456789012:root
laser deployment connect private-link connections 615380456123456921show prints the connection string of ld-admin, the deployment admin, the endpoints with their ports, and the platform network. The password shows its first three characters unless --reveal is passed. With --reveal the connection string is the one Get Deployment Credentials returns, ready for connect(). The SDK connects with these values, see Connect and Agent access. --root shows the root login instead, masked unless --reveal is added too. The API returns it only when the key also holds deployment:manage. Without that permission the command still exits 0, shows the ld-admin login, and says in credentials_note that root needs deployment:manage as well. The JSON field login names the login shown, admin or root. Without --root the output never carries root.
credentials rotate admin recreates ld-admin with a new password, which ends the old password, its tokens, its live sessions, and its HTTP access tokens. credentials rotate root replaces the root password and deletes every root token, while root's live sessions and HTTP access tokens last until they end or expire. Rotating root asks you to type the deployment name first, which --yes skips. Without a terminal and without --yes it exits 1 and sends nothing. Either rotation runs as one task on one node of the deployment and never restarts the streaming server. The reply holds deployment, login, state (queued), and a note that says when the new password applies. Exit code 2 means the supervisor refused the rotation: 403 without both permissions, 404 for a deployment that does not exist, 409 while another operation or rotation holds the deployment. Both need deployment:manage together with deployment:credentials:read. Applications that use the old password stop signing in once the deployment has applied the rotation, so they must read the new login. See Rotate Deployment Credentials.
access-rule allow-my-ip admits the address the CLI calls from for 24 hours, in a rule of its own that a second call replaces. --protocol is repeatable (tcp, http, websocket, or udp for QUIC). Use tcp before a Laser SDK app connects from the same machine.
mcp lists the deployment's three MCP endpoints: the organization, its region, and its data. --client prints a ready configuration for claude-code, claude-desktop, cursor, vscode, or codex with all three. It reads the key from LD_API_KEY and never contains it, except that Claude Desktop does not read your shell, so its file holds a placeholder to replace. Claude Desktop starts each endpoint through the mcp-remote bridge, which needs Node.js. --show-key writes the key the CLI uses into the configuration. The command warns when data access or the MCP runtime is off and names the command that turns it on. It writes no file.
Access rules admit IPv4 CIDR blocks, repeated with --cidr, on the protocols repeated with --protocol (http, tcp, udp, or websocket), every protocol by default. --valid-to sets an expiry and --remarks a note.
VPC peering needs --name and --peer-vpc-cidr, which must not overlap the platform CIDR. AWS takes --peer-vpc-id, --peer-owner-id, and --peer-region, and GCP takes --peer-vpc-name and --peer-project-id. instructions prints the steps that complete the connection on your side. Private endpoints are AWS PrivateLink endpoint services or GCP Private Service Connect attachments. AWS takes --acceptance-required and repeated --allowed-principal. GCP takes --connection-preference, repeated --consumer-accept-list, and --enable-proxy-protocol, and only GCP has instructions and connections. Peering starts at Performance, and private endpoints need Enterprise.
Connectors
laser deployment connector catalog --type sink
laser deployment connector add iggy.postgres.sink --type sink --name orders-to-postgres
laser deployment connector list
laser deployment connector show 615380456123456891
laser deployment connector delete 615380456123456891add takes a catalog key and --type (source or sink). --name and --key are generated when omitted. A new connector starts pending until it has a configuration, which you create with laser deployment settings config create --kind connector:<type>:<connector>. delete removes the connector and every configuration version.
Backends
laser deployment backend list
laser deployment backend show postgres
laser deployment backend configure postgres --dsn postgres://laser:secret@db.example.com:5432/laser --ssl-mode verify-full --schema laser
laser deployment backend configure embedded --sync-url libsql://orders-example.turso.io --auth-token "$TURSO_TOKEN"
laser deployment backend configure velodb --dsn mysql://laser:secret@velodb.example.com:9030/laser --fe-http-url https://velodb.example.com:8030
laser deployment backend disable embeddedBackends store projection data: embedded, postgres for your own Postgres 16 or newer, and velodb for your own VeloDB or Doris cluster. Saving a configuration turns the backend on and briefly restarts the deployment's managed data service. Secrets come back masked, and the default *** keeps a saved secret. configure postgres --host-managed-stores also hosts the managed stores in a new Postgres backend. configure embedded syncs the embedded engine to Turso Cloud, and --sync-off stops syncing. A Turso Cloud sync URL needs an auth token with full access to that database.
Settings
laser deployment settings show
laser deployment settings rename orders-eu --wait
laser deployment settings move --to-env production --wait
laser deployment settings update --protected true
laser deployment settings data-access off
laser deployment settings metadata-sync off --purge
laser deployment settings retention --telemetry-days 30
laser deployment settings spend-limit --limit 5000
laser deployment settings spend-limit --clear
laser deployment settings plan show
laser deployment settings plan upgrade --storage-type network_balanced --storage-size-gb 1000 --waitrename keeps the address and server names. move moves the deployment to another environment of the workspace. update changes --description or --protected, and turning protection off is an organization owner action. data-access turns data access on or off. metadata-sync turns the sync of streams, topics, and catalog metadata on or off, and off --purge also deletes the records LaserData stores. plan upgrade changes --managed-tier, --tier, or --storage-type, and --storage-size-gb together with --storage-type. Storage cannot shrink.
Renames, moves, data access, metadata sync, and plan upgrades are accepted at once and applied by the deployment's zone shortly after. deployment settings commands print the requested value against the applied one. --wait reads every 5 seconds until the change is applied or refused, and a refused change exits with code 4.
laser deployment settings config list --kind iggy
laser deployment settings config show --kind iggy
laser deployment settings config schema --kind iggy
laser deployment settings config create --kind iggy --file iggy.json --activate
laser deployment settings config activate --kind iggy --name iggy --version 3
laser deployment settings config create --kind connector:sink:postgres --file postgres-sink.json --activate
laser deployment settings runtime restart --runtime iggy --node 2
laser deployment settings runtime upgrade --version 0.10.4-ld
laser deployment settings backup create nightly --expires-in-days 7
laser deployment settings backup list
laser deployment settings backup restore 615380456123456901deployment settings config show --schema includes field names, types, and editing metadata. Add --reconfigure to config create --activate or config activate to apply the active Iggy configuration. A failure after activation reports that the version was saved but could not be applied.
config manages the configuration versions of a runtime. --kind is iggy (the default), connectors, or connector:<type>:<connector>. schema lists the sections and fields a kind takes. create reads a JSON object of values from --file, and --activate makes it the active version. delete removes a version that is not active.
runtime start, stop, and restart act on every node, or on the repeated --node values. runtime upgrade upgrades a runtime to --version one node at a time, and --digest TARGET=SHA256 pins the release artifact of a target. backup creates, lists, restores, and deletes point-in-time backups of the storage volumes. Backups need AWS Network Drive storage and backups in the plan.
Cluster, Clients, Users, and Roles
laser deployment cluster
laser deployment client list
laser deployment client show 42
laser deployment user list --system
laser deployment user show analytics
laser deployment user create analytics --new-password '<password>'
laser deployment user update analytics --name analytics-reader --status active
laser deployment user password analytics --current-password '<current-password>' --new-password '<new-password>'
laser deployment user permissions analytics --file permissions.json
laser deployment user permissions analytics --clear
laser deployment user delete analytics
laser deployment user roles analytics
laser deployment user bind-roles analytics --role kv-reader --role query-reader
laser deployment role list
laser deployment role users kv-reader
laser deployment role assign kv-reader analytics --yes
laser deployment role revoke kv-reader analytics --yes
laser deployment role show kv-reader
laser deployment role define --file kv-reader.json
laser deployment role delete kv-reader
laser deployment whoami
laser deployment capabilitiesdeployment user create takes the new account password with --new-password. The --username and --password flags remain the login for a direct connection. update changes the account name or status. permissions --file replaces the full native permission tree, and --clear removes it. Password changes require the current password. System accounts remain read only. Delete and permission replacement require confirmation or --yes.
deployment role users reads the native user list and each user's governance bindings. role assign and role revoke change only the named role and preserve all other bindings. role define --create refuses to replace an existing role. Role definitions use shared Laser SDK validation before submission.
These read the deployment live. cluster shows the configured node roster and the server counters of the node that answers. client list shows the connections to that node, and client show the consumer groups one client joined.
user lists the deployment's own accounts with their governance roles. LaserData system accounts stay hidden unless --system is passed. bind-roles replaces every governance role of a user, and no --role clears them. role manages the governance roles over the deployment's managed data. define reads a role such as {"name": "kv-reader", "grants": [...]} from a JSON file and needs authz:admin. whoami shows your own governance roles and effective grants. capabilities lists what the deployment serves: managed data, query, KV, graph, sessions, filters, and backends.
Agents
Agents
laser agent list
laser agent list --connected true --search planner
laser agent streams
laser agent show planner-01 -d orders
laser agent connections -d ordersagent list reads the agents of the workspace from synced metadata, one row per agent card on an agentic stream, or per agent seen only on a live connection. Filter it with --env, --search, --connected, --quarantined, and --stream. streams lists the agentic streams, the ones with an agent.sessions topic, with their session counts. show returns one agent of the deployment with its cards on every stream and its live connections. connections lists the live agent connections of the deployment and the presence each one advertises. It reads up to --limit connections and continues after the client id given with --after. agents is an alias.
Sessions
laser session list --status active
laser session list --agent planner-01 --label refund
laser session list --live --stream support --text refund -d orders
laser session show 01JC8ZK3S2W5Q6R7T8V9X0Y1Z2 --stream 1 -d orders
laser session events 01JC8ZK3S2W5Q6R7T8V9X0Y1Z2 --stream support
laser session state 01JC8ZK3S2W5Q6R7T8V9X0Y1Z2 --stream support
laser session links 01JC8ZK3S2W5Q6R7T8V9X0Y1Z2 --stream support --surface memory
laser session sources 01JC8ZK3S2W5Q6R7T8V9X0Y1Z2 --stream support
laser session changes --stream supportsession list reads the agent sessions of the workspace from synced metadata, newest activity first. Filter it with --status (submitted, active, paused, completed, failed, or canceled), --agent, --root for one session tree, and --label. --live reads one stream's sessions from the deployment instead, and there --text also matches the agent and the session id. Synced reads take the stream's numeric id in --stream, and live reads take its name.
show returns the status, counters, budget, and hierarchy of one session. events, state, links, sources, and changes read live: the timeline, the state document and its history, the resources the session wrote, recalled, or touched, the source partitions of its records, and the stream's session change feed.
The live reads take the stream by name or numeric ID. The CLI resolves an ID to its name first, since the deployment knows session streams by name and answers an unknown name with the same 403 it gives for a missing grant.
Conversations
laser conversation list --stream support --count 500
laser conversation show 01JC8ZK3S2W5Q6R7T8V9X0Y1Z2 --stream support --payload jsonConversations group agent sessions by gen_ai.conversation.id. They are threaded from a window of the stream's newest messages, --count per partition (200 by default, at most 1000) of the agent.* topics, not from the session index. Without --stream, the CLI chooses laser when it exists, or the only readable stream. Otherwise, select a stream explicitly.
Memory
laser memory namespaces
laser memory list support-notes --conversation 01JC8ZK3S2W5Q6R7T8V9X0Y1Z2
laser memory show support-notes 01JC8ZK3S2W5Q6R7T8V9X0Y1Z2
laser memory forget support-notes 01JC8ZK3S2W5Q6R7T8V9X0Y1Z2memory list supports the same key bounds as KV scans, including --prefix, --start, --end, --key-contains, and --conversation.
memory list shows what agents remembered in one namespace, newest first. forget deletes one stored memory, which an agent can remember again. On a deployment that scopes namespaces by stream, pass --stream.
Graphs
laser graph list
laser graph show knowledge.v1
laser graph nodes knowledge --limit 100
laser graph register --file knowledge.json
laser graph neighbors knowledge 01JC8ZK3S2W5Q6R7T8V9X0Y1Z2 --dir both --depth 2
laser graph query knowledge --file who-knows.json
laser graph drop knowledge.v1graph nodes reads the named graph with one-hop edges in both directions. Explore by graph name. Catalog operations such as show and drop use the projection ID. A graph populated by direct writes can exist without a registered projection.
register reads a graph projection from a JSON definition, and the deployment applies it in the background. neighbors walks the edges from one node, --dir (out, in, or both), --edge-type, --depth up to 8, --limit, --as-of, and --conversation. query runs a graph query from a JSON file with start, traverse, return_, and limit. drop keeps the nodes and edges and stops listing the graph.
Streams
Streams
laser stream list
laser stream list --agentic
laser stream list --live -d orders
laser stream show checkout
laser stream create checkout
laser stream update checkout --name checkout-v2
laser stream delete checkout-v2stream list reads the workspace's synced streams, narrowed to the deployment scope. Filter it with --env, --name, --projected, --filtered, and --agentic, and add the LaserData system streams with --system. --live reads the streams of the deployment instead. show, create, update, and delete act on one deployment. The server assigns the numeric id of a new stream. update renames it, and producers and consumers that use the numeric id are unaffected. delete removes the stream with its topics and messages and asks for the stream's name.
Topics
laser topic list --stream checkout
laser topic show checkout events
laser topic create checkout events --partitions 6 --expiry "7 days" --max-size "10 GiB" --replication-factor 3
laser topic update checkout events --expiry never
laser topic partitions checkout events
laser topic producers checkout events
laser topic partitions checkout events --add 2
laser topic delete checkout refundstopic list reads synced topics like stream list, and --stream lists one stream's topics. --live --stream reads them from the deployment instead. create takes --partitions (1 by default), --compression (none or gzip), --expiry such as 7 days or never, --max-size such as 10 GiB or unlimited, and --replication-factor from 1 to 32, fixed at create. update changes --name, --expiry, or --max-size. partitions lists the partitions, --add appends partitions, and hash-keyed producers route differently afterwards. --remove deletes the highest partitions with their messages and offsets.
Consumer Groups
laser group list checkout events
laser group create checkout events billing
laser group show checkout events billing
laser group policy checkout events billing
laser group delete checkout events billingConsumers in a group share the topic's partitions and join by the group's name. policy shows the filter policy the streaming server applies to every read of the group. delete removes the group with its stored offsets.
Messages
laser message read checkout events --partition 0 --kind first --count 50
laser message read checkout events --kind offset --value 1200 --payload json
laser message send checkout events --message '{"order_id":42,"status":"paid"}' --key order-42 --header source=cli
laser message send checkout events --file order.json --partition 2read reads one batch of a partition and stores no consumer offset, so it never moves a consumer. --kind is first, last (the default), offset, timestamp with --value in microseconds, or next after the stored offset of consumer 1. --count is 10, 20, 50, or 100, and --payload prints as text, json, or base64.
send sends repeated --message texts or --file payloads through the data access proxy and needs the deployment manage permission. The server balances the batch unless --partition or --key is set, and messages with the same key reach the same partition. --header KEY=VALUE adds a string header. A send is never resent.
Queries
laser query run --index orders --where status=paid --order created_at:desc --limit 20
laser query run --index orders --json '{"select":{"fields":["status"],"payload":true},"page":{"limit":20,"offset":0}}'
laser query run --index orders --where status=paid --fields order_id,amount --offset 20
laser query run --index orders --sql "SELECT * FROM <index> WHERE amount > 100"
laser query run --index orders --sql "SELECT status, count(*) FROM <index> GROUP BY status" --dialect postgresquery run queries a projection index as a binding names it. --where FIELD=VALUE keeps rows whose field equals the value. Numbers, true, false, and null are typed, and a value in double quotes stays text. --fields picks fields, --payload adds the original message, --order FIELD:asc or FIELD:desc sorts, and --fork reads a fork's view. --sql runs a read-only SELECT or WITH statement with <index> where the index name goes, in the dialect the deployment's backend advertises or the one named with --dialect (postgres, my_sql, or sqlite). A page holds --limit rows, 50 by default and at most 1000. Read the next page with --offset.
Projections
laser projection list --kind graph
laser projection list --live -d orders
laser projection show orders.v1
laser projection register --file orders-projection.json
laser projection bind --file orders-binding.json
laser projection unbind --stream checkout --topic events --projection orders.v1
laser projection drop orders.v1projection list reads the workspace's projections from synced metadata, filtered with --kind (row or graph) and --name, or one deployment's with --live. register and bind read JSON definitions, and the deployment applies a projection in the background. unbind stops routing a source topic into one projection, or into all of them without --projection. drop stops serving the projection's rows.
Consumer Filters
laser filter validate --filter paid-only.json
laser filter test --filter paid-only.json --payload '{"status":"paid","amount":120}'
laser filter preview --filter paid-only.json --stream checkout --topic events --max-records 20
laser filter register --name paid-only --filter paid-only.json --description "Paid orders"
laser filter bind 7 --stream checkout --topic events --group billing --revision 1
laser filter revise 7 --filter paid-only-v2.json
laser filter operation 1849302
laser filter configure-group --stream checkout --topic events --group fraud --name fraud-policy --filter fraud.jsonvalidate, test, and preview try a consumer filter without saving it. test judges one sample message, --payload for JSON or --payload-base64 for CBOR, Avro, or Protobuf, and explains the verdict. preview runs the filter over stored messages of one partition, joins no group, and stores no offset. test and preview also take a saved filter with --filter-id and --revision in place of --filter.
register saves a filter at revision 1, and revise adds revisions while bound groups keep theirs. bind attaches a consumer group to a revision, the latest by default, and unbind releases it so its consumers receive every record. configure-group saves a filter owned by one group and binds the group in one step. Catalog changes take --operation-id and are resent under the same id while their outcome is unknown, so a lost reply never applies twice. operation reads the outcome of a change by its id.
laser filter list --state active
laser filter show 7
laser filter revisions 7
laser filter bindings 7
laser filter binding --stream checkout --topic events --group billing
laser filter describe 7 --description "Paid orders only"
laser filter pause 7 --revision 2
laser filter resume 7 --revision 2
laser filter unbind --stream checkout --topic events --group billing
laser filter archive 7
laser filter drop 7
laser filter metricsfilter list reads the workspace's filters from synced metadata, or one deployment's catalog with --live. pause makes the groups bound to a revision refuse new filtered reads until resume. archive keeps the filter running for bound groups and refuses new bindings and revisions. drop releases every bound group, and the id is never reused. metrics prints the deployment's filter metrics in Prometheus text.
Key-Value Store
laser kv namespaces
laser kv scan fleet --prefix sat-
laser kv get fleet sat-7
laser kv set fleet sat-7 --value '{"mode":"safe"}' --ttl 3600
laser kv cas fleet sat-7 --value '{"mode":"nominal"}' --expect-version 3
laser kv cas fleet sat-8 --value-file sat-8.json --expect-absent
laser kv delete fleet sat-7
laser kv delete-many fleet --prefix sat-scan reads one namespace in key order, filtered with --prefix, --start, --end, --key-contains, and --conversation. set writes --value text or --value-file bytes, and --ttl expires the entry after that many seconds. cas writes only when the entry holds --expect-version or, with --expect-absent, does not exist, and prints the new version. delete-many deletes the entries that match the same bounds as scan, or the whole namespace without bounds. On a deployment that scopes namespaces by stream, pass --stream.
Forks
laser fork list --status open
laser fork list --live -d orders
laser fork create what-if --kind severed --table orders
laser fork put-row what-if --file row.json
laser fork promote what-if
laser fork delete what-iffork list reads the workspace's forks from synced metadata, filtered with --kind and --status (open, promoted, or squashed), or your open forks on one deployment with --live. create makes a copy-on-write fork of the read model, from the trunk or a --parent fork. A continuous fork, the default, sees the trunk grow, and a severed fork freezes the repeated --table values, or every table, at the current offsets. put-row writes one speculative row from a JSON file with table, partition_id, offset, fields, payload_b64, and tombstone. promote splices the fork's rows onto the trunk, then squashes the fork. delete squashes it and discards its rows. query run --fork reads a fork's view.
Writer Schemas
laser schema list
laser schema register --format avro --file telemetry.avsc --name telemetry --schema-version 1
laser schema register --format protobuf --file shop.desc --message-type shop.Order --stream checkout
laser schema show 12
laser schema decode 12 --payload-file sample.bin
laser schema drop 12register takes --format (avro, json_schema, or protobuf) and a --file with the Avro or JSON Schema text, or a compiled Protobuf FileDescriptorSet with --message-type. It prints the new schema id. Schemas live in the deployment-wide registry, or in one stream's registry with --stream. drop removes a schema from the active set, keeps its id reserved, and stored records keep decoding. decode decodes --payload-file or --payload-base64.
Dead Letters
laser dlq list
laser dlq list --source agent --stream support --count 20dlq list reads the deployment's dead letters, newest first. --source managed reads failures of the managed data features, such as changes that failed to apply, projection batches that could not be processed, and records dropped by schema decoding. --source agent reads agent messages that exhausted their retries or were rejected. Both are read by default.
Find
laser find checkoutfind looks for a workspace, deployment, stream, or topic whose name contains the text, at least 2 characters, ignoring case.
Pricing
laser pricing get
laser pricing get --rates -o json
laser pricing estimate managed --managed-tier standard --cloud aws --compute-profile-id small --storage-profile-id network_drive --storage-gb-per-node 100 --throughput-mb-per-second 5
laser pricing estimate byoc --vcpus-per-node 8Pricing commands need no sign-in. pricing get lists each managed tier per cloud with its starting monthly price, and --rates adds the compute, storage, and transfer rates behind them. -o json returns the catalog as the API does. estimate managed prices a managed deployment from published rates. --storage-profile-id is network_drive or local_nvme, --throughput-mb-per-second is estimated symmetric traffic, not a reservation, --availability-mode multi_az requires Enterprise, and an omitted --region uses the cloud's reference region. estimate byoc prices the BYOC platform for three nodes.
Tools
laser version
laser update
laser docs
laser tuiversion prints the CLI version, update upgrades the binary in place, and docs prints the API documentation addresses. tui, or ui, opens the TUI Dashboard.
Shell Completion
laser --generate bash > ~/.local/share/bash-completion/completions/laser
laser --generate zsh > "${fpath[1]}/_laser"
laser --generate fish > ~/.config/fish/completions/laser.fish
laser --generate powershell > laser.ps1
laser --generate elvish > ~/.config/elvish/lib/laser-completions.elvAliases
| Command | Aliases |
|---|---|
context | ctx |
context use, workspace use | switch |
org | organization, orgs |
org key | keys, api-key |
org invitation cancel | revoke |
workspace | ws, workspaces |
env | environment, envs |
deployment | dep, deployments |
tui | ui |
Most groups and subgroups also accept their plural, such as streams, topics, sessions, org members, deployment connectors, and deployment settings backups.
Official LaserData CLI
Install laser, sign in, and work with your organization, workspaces, deployments, and their data from commands or the terminal dashboard
TUI Dashboard
Use the LaserData Console in the terminal with the workspace sidebar, pages and tabs, the command palette, and keyboard and mouse control