Skip to content

chore: migrate from dfx to icp-cli#370

Draft
andreacerulli wants to merge 2 commits intopr2/regenerate-declarationsfrom
pr3/backend-icp-cli
Draft

chore: migrate from dfx to icp-cli#370
andreacerulli wants to merge 2 commits intopr2/regenerate-declarationsfrom
pr3/backend-icp-cli

Conversation

@andreacerulli
Copy link
Copy Markdown
Contributor

Replace dfx.json configs with icp.yaml for all backends and examples. Update gen_bindings.sh scripts to use @icp-sdk/bindgen instead of dfx generate. Update Makefiles, mops.toml, and README documentation for icp-cli commands.

  • Remove all dfx.json files
  • Add icp.yaml configs for all rust and motoko backends
  • Update gen_bindings.sh to use npx @icp-sdk/bindgen
  • Update Makefiles for icp-cli compatible builds
  • Update mops.toml toolchain configs
  • Update backend test key from dfx_test_key to test_key_1
  • Update all README files with icp-cli instructions

@andreacerulli andreacerulli force-pushed the pr2/regenerate-declarations branch from 4919412 to 0cfda3c Compare April 16, 2026 14:41
@andreacerulli andreacerulli force-pushed the pr2/regenerate-declarations branch 2 times, most recently from 4440390 to 7ba7132 Compare April 16, 2026 15:49
dfx generate produces declarations with @dfinity/agent imports, which
conflict with the migrated @icp-sdk/core source imports. Add a sed
post-processing step to each gen_bindings.sh that rewrites the imports
after generation.

This is a temporary bridge until PR3 replaces dfx generate with
@icp-sdk/bindgen entirely.
Replace dfx.json configs with icp.yaml for all backends and examples.
Update gen_bindings.sh scripts to use @icp-sdk/bindgen instead of dfx generate.
Update Makefiles, mops.toml, and README documentation for icp-cli commands.

- Remove all dfx.json files
- Add icp.yaml configs for all rust and motoko backends
- Update gen_bindings.sh to use npx @icp-sdk/bindgen
- Update Makefiles for icp-cli compatible builds
- Update mops.toml toolchain configs
- Update backend test key from dfx_test_key to test_key_1
- Update all README files with icp-cli instructions
@andreacerulli andreacerulli force-pushed the pr2/regenerate-declarations branch from 7ba7132 to f91958f Compare April 16, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant