CLI Reference
Auth
The Auth command allows you to log in and out of Codezero.
Usage
czctl auth [SUB-COMMAND]
Examples
czctl auth login
Sub-commands
Sub-command | Description |
---|---|
login | Login to Codezero |
logout | Logout from Codezero |
Flags
Flags | Description |
---|---|
--force | If set, app will not check if the user is already logged in (not needed for --token). |
--no-gui | If set, app will not try to open a browser window for login. |
--token | If set, app will not try to open a browser window for login and will use the provided token. |
Cleanup
Cleans the system changes performed by czdaemon. Can help if czdaemon did not exit gracefully to bring back your network settings.
Usage
czctl cleanup
Completion
Generate the autocompletion script for czctl for the specified shell.
See each sub-command's help for details on how to use the generated script.
Usage
czctl completion [SUB-COMMAND]
Sub-commands
Sub-command | Description |
---|---|
bash | Generate the autocompletion script for bash |
fish | Generate the autocompletion script for fish |
powershell | Generate the autocompletion script for powershell |
zsh | Generate the autocompletion script for zsh |
Example
To load zsh completions in your current shell session:
source <(czctl completion zsh)
Consume
Manage consume rules.
Apply
Apply consume rules from a file.
Usage
czctl consume apply source_file [flags]
Examples
czctl consume apply source_file
Flags
Flags | Description |
---|---|
--primary-namespace | The primary namespace used for services consume |
Edit
Edit consume rules.
Usage
czctl consume edit [flags]
Examples
czctl consume edit
Flags
Flags | Description |
---|---|
--editor | Your preferred editor to edit the rules. If not set, will try to use EDITOR environment variable, or present you a list of available ones. Please make sure to use the -w flag with the editor so that the app can wait for you to finish editing. |
--primary-namespace | The primary namespace used for services consume |
List
List consumed services.
Usage
czctl consume list [flags]
Examples
czctl consume list
Flags
Flags | Description |
---|---|
--filter string | Filter to apply to the list. Format is: <namespace>[/<resource>]. Wildcards are supported. |
--format string | Output format. Supported values: yaml, json, pretty (default "pretty") |
View
View consume rules.
Usage
czctl consume view
Examples
czctl consume view
Options
Provides operations for managing Codezero options.
Certs
Manage Codezero certificates.
Sub-command | Description |
---|---|
install | Install Codezero certificates to system |
remove | Remove Codezero certificates from system |
Usage
czctl options certs [SUB-COMMAND]
Examples
czctl options certs remove
Config
Manage Codezero configuration file.
Sub-command | Description |
---|---|
create | Creates a new config file and quits. Does not overwrite existing config file by default. Use --overwrite to overwrite existing config file. |
test | Test the configuration file. |
view | View config |
Usage
czctl options config [SUB-COMMAND]
Examples
czctl options config view
Flags
Flags | Description |
---|---|
--overwrite | Overwrite existing config file |
Set
Set configuration options.
Option | Description |
---|---|
resolver | Specify host resolver (dns, hosts) (default: dns) |
skip-version-check | Do not check version against hub version (bool) (default: false) |
log-level | Sets the logging verbosity. Accepted values: panic, fatal, error, warn, info, debug, trace (string) (default: info) |
log-directory | Path where logs are stored, optionally can be set to stdout or stderr (string) (default: /Users/georgf/Library/Application Support/codezero/logs) |
Usage
czctl options set [OPTION] [VALUE]
Examples
czctl options set resolver hosts
Organization
Manage Organizations.
Clear
Clear the currently selected organization.
Usage
czctl organization clear
List
List organizations
Usage
czctl organization list [flags]
Examples
czctl organization list --format json
Flags
Flags | Description |
---|---|
--format string | Output format (text | json) (default "text") |
Select
Changes the current organization
You can use this command to change the current organization. If you don't provide a name or there are multiple spaces with the same name, you will be interactively prompted to select one.
Usage
czctl organization select [organization name] [flags]
Examples
czctl organization select MyOrg
Flags
Flags | Description |
---|---|
--id string | Select by organization ID |
Primary Namesapce
Manage primary namespace.
Clear
Clear the currently selected primary namespace.
Usage
czctl primary-namespace clear
Select
Change the current primary namespace.
Usage
czctl primary-namespace select [namespace]
Examples
czctl primary-namespace select sample-project
Arguments
Arguments | Description |
---|---|
namespace | The name of the Kubernetes namespace. |
Restart
Restarts the Codezero daemon if it is running. If it is not running, does nothing.