Skip to main content

Path globs - Kreya CLI

Some commands, such as kreyac operation invoke or kreyac script invoke, accept a list of globs. With globs, you can specify a range of files and folders without repeating yourself.

info

Careful when using globs in some shells, for example bash. When running

kreyac script invoke ./my-scripts/**

the shell would expand the glob before it is passed to Kreya. We recommend enclosing the globs in quotes to disabled this behavior:

kreyac script invoke './my-scripts/**'

Excluding files and folders

If a glob starts with an exclamation mark !, it marks the matched files and folders as excluded.

kreyac operation invoke '**' '!directory-to-ignore/'

This example would invoke all operations, with the exception of those located in the directory-to-ignore folder.