Corteza CLI
Corteza command-line interface tool allows you to quickly interact with different parts of the system — from changing the settings to assigning roles to users.
Depending on built flavour, you can use a different entry:
- 
Microservice build produce corteza-server-system,corteza-server-messagingandcorteza-server-compose,
- 
monolith build produces corteza-serverbinary withsystem,messaging,composesub-commands.
Provision commands
Base command
Usage:
  corteza-server provision [command]
Available Commands:
  configuration    Create permissions & resources
  migrate-database Run database migration scripts
Flags:
  -h, --help   help for provision
Use "corteza-server provision [command] --help" for more information about a command.System commands
External authentication
Usage:
  corteza-server system auth [command]
Available Commands:
  auto-discovery     Auto discovers new OIDC client
  jwt                Generates new JWT for a user
  test-notifications Sends samples of all authentication notification to the recipient
Flags:
  -h, --help   help for auth
Use "corteza-server system auth [command] --help" for more information about a command.Auto discovers new OIDC client
Usage:
  corteza-server system auth auto-discovery [name] [url] [flags]
Flags:
      --enable            Enable this provider and external auth
  -h, --help              help for auto-discovery
      --skip-validation   Skip validationSends samples of all authentication notification to the recipient
Usage:
  corteza-server system auth test-notifications [recipient] [flags]
Flags:
  -h, --help   help for test-notificationsGenerates new JWT for a user
Usage:
  corteza-server system auth jwt [email-or-id] [flags]
Flags:
  -h, --help   help for jwtExport system resources
Usage:
  corteza-server system export [flags]
Flags:
  -h, --help          help for export
  -p, --permissions   Export system permissions
  -s, --settings      Export settingsImport system resources
Usage:
  corteza-server system import [flags]
Flags:
  -h, --help   help for importManage roles
Usage:
  corteza-server system roles [command]
Available Commands:
  useradd     Add user to role
Flags:
  -h, --help   help for roles
Use "corteza-server system roles [command] --help" for more information about a command.Add user to role
Usage:
  corteza-server system roles useradd [role-ID-or-name-or-handle] [user-ID-or-email] [flags]
Flags:
  -h, --help   help for useraddManage settings
Usage:
  corteza-server system settings [command]
Available Commands:
  delete      Set value (raw JSON) for a specific key (or by prefix)
  export      Import settings as JSON to stdout or file
  get         Get value (raw JSON) for a specific key
  import      Import settings as JSON from stdin or file
  list        List all
  set         Set value (raw JSON) for a specific key
Flags:
  -h, --help   help for settings
Use "corteza-server system settings [command] --help" for more information about a command.Remove settings for specific keys
Usage:
  corteza-server system settings delete [keys, ...] [flags]
Flags:
  -h, --help            help for delete
      --prefix string   Filter settings by prefixExport settings as JSON to stdout or a file
Usage:
  corteza-server system settings export [file] [flags]
Flags:
  -h, --help   help for exportGet value for a specific key
| The value is provided as a raw JSON. | 
Usage:
  corteza-server system settings get [key to get, ...] [flags]
Flags:
  -h, --help   help for getImport settings as JSON from stdin or a file
Usage:
  corteza-server system settings import [file] [flags]
Flags:
  -h, --help   help for importList all settings
Usage:
  corteza-server system settings list [flags]
Flags:
  -h, --help            help for list
      --prefix string   Filter settings by prefixSet value for a specific key
| The value is provided as a raw JSON. | 
Usage:
  corteza-server system settings set [key to set] [value] [flags]
Flags:
  -h, --help   help for setSink
Usage:
  corteza-server system sink [command]
Available Commands:
  signature   Creates signature for sink HTTP endpoint
Flags:
  -h, --help   help for sink
Use "corteza-server system sink [command] --help" for more information about a command.Create sink signature
Usage:
  corteza-server system sink signature [flags]
Flags:
      --content-type string   Content type (optional)
      --expires string        Date of expiration (YYYY-MM-DD, optional)
  -h, --help                  help for signature
      --max-body-size int     Max allowed body size
      --method string         HTTP method that will be used (optional)
      --origin string         Origin of the request (arbitrary string, optional)
      --path string           Full sink request path (do not include /sink prefix, add / for just root)
      --signature-in-path     Include signature in a path instead of query stringManage system users
Usage:
  corteza-server system users [command]
Available Commands:
  add         Add new user
  list        List users
  password    Change password for user
Flags:
  -h, --help   help for users
Use "corteza-server system users [command] --help" for more information about a command.Low Code commands
Export Low Code resources
Usage:
  corteza-server compose export [flags]
Flags:
  -h, --help               help for export
      --namespace string   Export namespace resources (by ID or string)
  -p, --permissions        Export system permissions
  -s, --settings           Export settings
Arguments:
  modules                  Export modules
  pages                    Export pages
  charts                   Export charts
  permissions              Export permissions