i think about it every time, shouldnt the build command be under dfx canister? just like dfx canister install and dfx canister create? wondering why for the placement-choice?
2 Likes
Because it builds it for all the canisters in your dfx.json
, not necessarily just for a single canister.
Erm, that’s not necessarily true. @levifeldman brings up a good point about the inconsistency in the cli api.
% dfx canister status
error: The following required arguments were not provided:
--all
USAGE:
dfx canister status --all
For more information try --help
1 Like
Hm interesting, you’re right. I guess probably because building a canister is so common that they wanted to make the command short?
Because dfx-build does not involve any canisters. It builds code into a wasm module.
1 Like
But dfx deploy
does though…