Skip to content
Open
Show file tree
Hide file tree
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
16 changes: 16 additions & 0 deletions pages/common/conan-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# conan build

> Install dependencies and call the `build()` method of a recipe.
> More information: <https://docs.conan.io/2/reference/commands/build.html>.

- Build the package defined in the current directory:

`conan build {{.}}`

- Build the package and store the artifacts in a specific output folder:

`conan build {{.}} --of {{path/to/output_folder}}`

- Build the package using a specific profile:

`conan build {{.}} {{[-pr|--profile]}} {{profile_name}}`
16 changes: 16 additions & 0 deletions pages/common/conan-create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# conan create

> Create a package from a `conanfile.py` recipe.
> More information: <https://docs.conan.io/2/reference/commands/create.html>.

- Create a package from the recipe in the current directory:

`conan create {{.}}`

- Create a package with a specific name and version:

`conan create {{.}} --name {{name}} --version {{version}}`

- Create a package with a specific user and channel:

`conan create {{.}} --user {{user}} --channel {{channel}}`
24 changes: 24 additions & 0 deletions pages/common/conan-install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# conan install

> Install the dependencies specified in a recipe or `conanfile.txt`.
> More information: <https://docs.conan.io/2/reference/commands/install.html>.

- Install dependencies for the current directory:

`conan install {{.}}`

- Install dependencies, building from source only when prebuilt binaries are missing:

`conan install {{.}} --build {{missing}}`

- Install dependencies using a specific profile:

`conan install {{.}} {{[-pr|--profile]}} {{profile_name}}`

- Install dependencies in Release mode:

`conan install {{.}} {{[-s|--settings]}} {{build_type=Release}}`

- Install dependencies into a specific output folder:

`conan install {{.}} --of {{path/to/output_folder}}`
20 changes: 20 additions & 0 deletions pages/common/conan-profile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# conan profile

> Manage Conan profiles, which define settings and options for building packages.
> More information: <https://docs.conan.io/2/reference/commands/profile.html>.

- Auto-detect the host environment and create a `default` profile:

`conan profile detect`

- List the profiles in the cache:

`conan profile list`

- Show the aggregated configuration of the current profiles:

`conan profile show`

- Show the path of a specific profile:

`conan profile path {{profile_name}}`
24 changes: 24 additions & 0 deletions pages/common/conan-remote.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# conan remote

> Manage the list of Conan remotes and the users authenticated on them.
> More information: <https://docs.conan.io/2/reference/commands/remote.html>.

- List the configured remotes:

`conan remote list`

- Add a remote:

`conan remote add {{remote_name}} {{url}}`

- Disable a remote without removing it:

`conan remote disable {{remote_name}}`

- Log in to a remote:

`conan remote login {{remote_name}}`

- Remove a remote:

`conan remote remove {{remote_name}}`
2 changes: 1 addition & 1 deletion pages/common/conan.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# conan

> The open source, decentralized, and cross-platform package manager to create and share all your native binaries.
> Some subcommands such as `frogarian` have their own usage documentation.
> Some subcommands such as `install`, `create`, `profile`, `remote` have their own usage documentation.
> More information: <https://docs.conan.io/2/reference/commands.html>.

- Install packages based on `conanfile.txt`:
Expand Down
Loading