Skip to content

Commit a361294

Browse files
authored
Merge pull request #3573 from yyy1000/doc
📖 Add document for Alpha generate command
2 parents bddb6f5 + bca82df commit a361294

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/book/src/reference/rescaffold.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Rescaffold Command
2+
3+
## Overview
4+
5+
The Kubebuilder CLI provides a new experimental helper `alpha generate` command to re-scaffold an existing project from the scratch using the current version of KubeBuilder binary available based on PROJECT config file.
6+
7+
## When to use it ?
8+
9+
This command is useful when you want to upgrade an existing project to the latest version of the Kubebuilder project layout. It makes it easier for the users to migrate their operator projects to the new scaffolding.
10+
11+
## How to use it ?
12+
13+
Currently, it supports two optional params, `input-dir` and `output-dir`.
14+
15+
`input-dir` is the path to the existing project that you want to re-scaffold. Default is the current working directory.
16+
17+
`output-dir` is the path to the directory where you want to generate the new project. Default is a subdirectory in the current working directory.
18+
19+
```sh
20+
kubebuilder alpha generate --input-dir=/path/to/existing/project --output-dir=/path/to/new/project
21+
```

0 commit comments

Comments
 (0)