Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Update registering-new-projects.adoc #200

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The project catalog consists of a collection of projects that can be referenced

To add a project catalog, use the `spring project-catalog add` command.

In this example, we register a sample catalog that is available at https://github.com/rd-1-2022/sample-project-catalog.
In this example, we register a sample catalog that is available at https://github.com/rd-1-2022/spring-gs-catalog.

Within that repository, there is a file named `project-catalog.yml`.
This is the filename for which the command searches.
Expand All @@ -17,16 +17,16 @@ The following listing shows the command:

[source, bash]
----
spring project-catalog add dapr https://github.com/rd-1-2022/sample-project-catalog
spring project-catalog add dapr https://github.com/rd-1-2022/spring-gs-catalog
----

The preceding command registers a project catalog named `darp` from `https://github.com/rd-1-2022/sample-project-catalog` using positional parameters.
The preceding command registers a project catalog named `darp` from `https://github.com/rd-1-2022/spring-gs-catalog` using positional parameters.

You can achieve the same result by using the `name` option, as follows:

[source, bash]
----
spring project-catalog add --name dapr --url https://github.com/rd-1-2022/sample-project-catalog
spring project-catalog add --name dapr --url https://github.com/rd-1-2022/spring-gs-catalog
----

Now, you can view the available projects in the catalog by running the following command:
Expand Down