motoko-dev-server icon indicating copy to clipboard operation
motoko-dev-server copied to clipboard

Possible to specify which canisters to run a given command?

Open atengberg opened this issue 2 years ago • 2 comments

Hello, thanks for the very useful project.

Is it possible to pass commands to mo-dev so that only specific canisters are included?

For instance, mo-dev generate will also generate the declarations for the internet_identity canister that's declared in the dfx.json but whose declarations are not needed (similarly they will be generated for a frontend canister).

atengberg avatar Jun 13 '23 13:06 atengberg

One solution could be to use mo-dev --deploy --exec 'dfx generate my_canister'. Since generating all bindings is the usual behavior for dfx projects, I'll see if we can make it possible to specify the default canisters in the dfx.json file.

rvanasa avatar Jun 13 '23 15:06 rvanasa

I opened a discussion about this here: https://github.com/dfinity/sdk/discussions/3173.

rvanasa avatar Jun 13 '23 16:06 rvanasa