4.3
You are viewing documentation for an older version of Lenses.io View latest documentation here
Exporting
The CLI allows you to export all resources in Lenses as requests so that they can be version controlled and imported into another environment.
Export operations are performed on a per resource basis, the directory structure is defined by the cli whereas a base directory can be provided using the —dir flag.
Processors, connectors, topics and schemas have an additional prefix flag to restrict resources to export.
lenses-cli export acls --dir my-dir
lenses-cli export alert-channels --dir my-dir
lenses-cli export alert-settings --dir my-dir
lenses-cli export audit-channels --dir my-dir
lenses-cli export connections --dir my-dir
lenses-cli export connectors --dir my-dir
lenses-cli export processors --dir my-dir
lenses-cli export quotas --dir my-dir
lenses-cli export schemas --dir my-dir
lenses-cli export topics --dir my-dir
lenses-cli export policies --dir my-dir
lenses-cli export groups --dir my-dir
lenses-cli export serviceaccounts --dir my-dir
The directory structure is as follows:
my-dir
├── alert-channels
| └── alert-channel-channel-1.yaml
├── alert-settings
│ └── alert-setting.yaml
├── apps
│ ├── connectors
│ │ ├── connector-1.yaml
│ │ └── connector-2.yaml
├── audit-channels
| └── audit-channel-channel-1.yaml
├── connections
│ └── connection-c1.yaml
├── groups
│ └── groups.yaml
├── kafka
│ ├── quotas
│ │ └── quotas.yaml
│ └── topics
│ ├── topic-1.yaml
│ └── topic-2.yaml
├── policies
│ └── policies-city.yaml
├── service-accounts
│ └── service-accounts.yaml
└── schemas
├── schema-1.yaml
└── schema-2.yaml