LinuxCommandLibrary

quarkus

CLI for Kubernetes-native Java framework

TLDR

Create new project

$ quarkus create app [com.example:myapp]
copy
Start development mode
$ quarkus dev
copy
Build native executable
$ quarkus build --native
copy
Add extension
$ quarkus extension add [resteasy-reactive]
copy
List extensions
$ quarkus extension list
copy
Search extensions
$ quarkus extension search [jdbc]
copy
Build JAR
$ quarkus build
copy
Run tests
$ quarkus test
copy

SYNOPSIS

quarkus [create] [dev] [build] [extension] [options] [args]

DESCRIPTION

quarkus is the CLI for Quarkus, a Kubernetes-native Java framework. It creates, builds, and runs Quarkus applications.
Development mode provides live reload. Code changes trigger automatic restart. Dev services spin up databases and other dependencies automatically.
Native compilation uses GraalVM to produce standalone executables. These start in milliseconds and use less memory than traditional Java.
Extensions add functionality: REST APIs, database access, messaging, security, and more. The extension catalog covers most enterprise needs.
Container image building integrates with Docker, Podman, and Kubernetes. Images can use JVM or native mode.
The framework targets microservices and serverless deployments where fast startup and low memory are critical.

PARAMETERS

create app NAME

Create new application.
create cli
Create CLI application.
dev
Development mode with live reload.
build
Build application.
build --native
Build native executable.
test
Run tests.
extension add EXT
Add extension.
extension list
List project extensions.
extension search QUERY
Search available extensions.
deploy
Deploy application.
image build
Build container image.
--help
Show help.
--version
Show version.

CAVEATS

Native compilation takes time and memory. Some Java libraries don't work in native mode. GraalVM required for native builds.

HISTORY

Quarkus was released by Red Hat in 2019 as a "supersonic, subatomic Java" framework. It was designed from the ground up for container and Kubernetes deployments, addressing Java's traditional weaknesses in startup time and memory.

SEE ALSO

mvn(1), gradle(1), java(1), docker(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community