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
By default, kosli will not make new snapshots for scaling events (change in number of instances running). For large clusters the scaling events will often outnumber the actual change of SW. It is possible to enable new snapshots for scaling events with the —include-scaling flag, or turn it off again with the —exclude-scaling. 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 June 22, 2026