Skip to content

Command reference

bash
codewise <command> [subcommand] [flags]
CommandPurpose
configInitialize and view global defaults
deployPlan, run, inspect, and roll back deployments
dockerGenerate, validate, build, and push images
encodeConvert structured files and Base64 data
envCreate, list, and delete environment profiles
helmGenerate Helm charts
initScaffold a DevOps-ready project
k8sGenerate, apply, and delete Kubernetes manifests
templateGenerate GitHub Actions and Argo CD templates
versionPrint or check the CLI version
completionGenerate shell completion scripts
doctorDiagnose installed tools and optional cluster connectivity
helpShow help for Codewise or a specific command

Run help at any level:

bash
codewise --help
codewise deploy --help
codewise deploy rollback --help

Global flags

FlagDescription
-h, --helpShow context-sensitive help
-v, --versionPrint the CLI version

Version and completion

bash
codewise version
codewise version --latest
codewise completion bash
codewise completion zsh
codewise completion fish
codewise completion powershell
codewise doctor
codewise doctor --cluster --context kind-codewise
codewise doctor --require docker,kubectl,helm
CommandFlags
version-l, --latest
completion bash--no-descriptions
completion fish--no-descriptions
completion powershell--no-descriptions
completion zsh--no-descriptions

Disable completion descriptions when a shell setup needs smaller generated output:

bash
codewise completion bash --no-descriptions

Ask for help directly or through Cobra's generated help command:

bash
codewise --help
codewise help deploy
codewise help deploy rollback

Complete command inventory

This table is the exhaustive callable command surface. --help is available on every command and is omitted from the per-command flag column to keep the table readable.

Command pathArguments and command-specific flags
codewise-v, --version
codewise help [command]Command path to explain
codewise version-l, --latest
codewise completion bash--no-descriptions
codewise completion fish--no-descriptions
codewise completion powershell--no-descriptions
codewise completion zsh--no-descriptions
codewise config initNone
codewise config viewNone
codewise doctor--cluster; --context <name>; --require <comma-separated-tools>
codewise env create <name>-i, --interactive
codewise env listNone
codewise env show <name>`--format yaml
codewise env strategy <name> <strategy>Strategy is auto, helm, kubectl, or gitops
codewise env delete <name>--yes
codewise docker initNone
codewise docker validateNone
codewise docker build-t, --tag <image>
codewise docker push-t, --tag <image> (required)
codewise k8s init--app <name>, --image <image>
codewise k8s apply--namespace <name>, --context <name>, --dry-run
codewise k8s delete--namespace <name>, --context <name>, --dry-run
codewise helm init--app <name>, --image <image>
codewise deploy plan--env <name> (required)
codewise deploy explain--env <name> (required)
codewise deploy run--env <name> (required), --dry-run
codewise deploy preview--pr <number> or --image <image> (at least one required); --keep
codewise deploy status--env <name> (required)
codewise deploy logs--env <name> (required), --follow
codewise deploy history--env <name> (required)
codewise deploy rollback--env <name> (required), --revision <number>
codewise encode-i, --input <file> (required); -o, --output <file> (required); --json-to-yaml; --env-to-json; --base64; --decode; -f, --force
codewise encode kvtj-f, --file <file> (required); -o, --output <file>; -p, --print
codewise init-p, --project <name>; --with-docker; --with-deployment
codewise template github-action-o, --output <file> (required); --app-name <name>; --repo <url>
codewise template argo-app-o, --output <file> (required); --app-name <name>; --repo <url>

The parent commands—config, deploy, docker, encode, env, helm, k8s, template, and completion—display their available subcommands when invoked with --help.

Released under the MIT License.