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
2 changes: 1 addition & 1 deletion apps/docs/docs/ionic-angular/capacitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Capacitor
sidebar_label: Capacitor
---

By default, [Capacitor](https://capacitorjs.com/) is configured for a newly generated project. Typically you execute Capacitor commands with `ionic capacitor ...` or `npx cap ...`. However, due to the way that Nx works, the Capacitor commands go through the Nx CLI.
By default, [Capacitor](https://capacitorjs.com/) is configured for a newly generated project. Typically you execute Capacitor commands with `ionic capacitor ...` or `npx --package=@capacitor/cli cap ...`. However, due to the way that Nx works, the Capacitor commands go through the Nx CLI.

## Add Native Platform

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/docs/ionic-react/capacitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Capacitor
sidebar_label: Capacitor
---

By default, [Capacitor](https://capacitorjs.com/) is configured for a newly generated project. Typically you execute Capacitor commands with `ionic capacitor ...` or `npx cap ...`. However, due to the way that Nx works, the Capacitor commands go through the Nx CLI.
By default, [Capacitor](https://capacitorjs.com/) is configured for a newly generated project. Typically you execute Capacitor commands with `ionic capacitor ...` or `npx --package=@capacitor/cli cap ...`. However, due to the way that Nx works, the Capacitor commands go through the Nx CLI.

## Add Native Platform

Expand Down
2 changes: 1 addition & 1 deletion packages/capacitor/src/executors/cap/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default async function runExecutor(

const runCommandsOptions: RunCommandsBuilderOptions = {
cwd: projectRootPath,
command: `npx cap ${cmd}`,
command: `npx --package=@capacitor/cli cap ${cmd}`,
};

return await runCommands(runCommandsOptions, context);
Expand Down