← 返回命令列表

Linux command

quarkus 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create new project

quarkus create app [com.example:myapp]

Start development mode

quarkus dev

Build native executable

quarkus build --native

Add extension

quarkus extension add [resteasy-reactive]

List extensions

quarkus extension list

Search extensions

quarkus extension search [jdbc]

Build JAR

quarkus build

Run tests

quarkus test

说明

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.

参数

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.

FAQ

What is the quarkus command used for?

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.

How do I run a basic quarkus example?

Run `quarkus create app [com.example:myapp]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does create app _NAME_ do in quarkus?

Create new application.