Skip to main content

Synopsis

Create or update a Kosli environment. --type must match the type of environment you wish to record snapshots from. The following types are supported:
  • k8s - Kubernetes
  • ecs - Amazon Elastic Container Service
  • s3 - Amazon S3 object storage
  • lambda - AWS Lambda serverless
  • docker - Docker images
  • azure-apps - Azure app services
  • server - Generic type
  • logical - Logical grouping of real environments
Logical environments are used for grouping of physical environments. For instance prod-aws and prod-s3 can be grouped into logical environment prod. Logical environments are view-only, you can not report snapshots to them. ENVIRONMENT-NAMEs must start with a letter or number, and only contain letters, numbers, ., - and _.

Flags

Flags inherited from parent commands

Examples Use Cases

These examples all assume that the flags --api-token, --org, --host, (and --flow, --trail when required), are set/provided.
Last modified on August 3, 2026