# DFX sync/upload assets to Motoko asset canister

**URL:** <https://forum.dfinity.org/t/dfx-sync-upload-assets-to-motoko-asset-canister/41358>\
**Category:** Command Line Tools\
**Created:** [February 19, 2025, 6:13am UTC](https://forum.dfinity.org/t/dfx-sync-upload-assets-to-motoko-asset-canister/41358 "2025-02-19T06:13:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gekctek](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/gekctek/32/6863_2.png) [@Gekctek](https://forum.dfinity.org/u/Gekctek)\
**Post date:** [February 19, 2025, 6:13am UTC](https://forum.dfinity.org/t/dfx-sync-upload-assets-to-motoko-asset-canister/41358/1 "2025-02-19T06:13:40Z")

</div>

Is there a way to sync/upload assets to an asset canister via DFX with a command/config  
I know there is the ‘asset’ canister type that will create and sync in the background but I am looking for a solution to have a Motoko canister, with the Asset Canister Interface, be deployed and sync’d

It seems like there is the crate [crates.io: Rust Package Registry](https://crates.io/crates/icx-asset) that can be used with the CLI, but was trying to avoid having more complexity and dependencies on rust/cargo

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [February 19, 2025, 9:37am UTC](https://forum.dfinity.org/t/dfx-sync-upload-assets-to-motoko-asset-canister/41358/2 "2025-02-19T09:37:07Z")

</div>

We have an old ticket laying around (note to self: [this one](https://dfinity.atlassian.net/browse/SDK-1418)) that would make this possible, but it would need a bit of design work.

For now the `icx-asset` tool you found is the only option on CLI. For Rust code we also have the `ic-asset` crate (icx-asset is just a CLI wrapper around it), and for JS there is the `@dfinity/assets` package that I don’t know how up-to-date it is, but I know it works with the latest asset canisters.

---

<div class="post-metadata">

**Author:** ![Gekctek](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/gekctek/32/6863_2.png) [@Gekctek](https://forum.dfinity.org/u/Gekctek)\
**Post date:** [February 19, 2025, 8:16pm UTC](https://forum.dfinity.org/t/dfx-sync-upload-assets-to-motoko-asset-canister/41358/3 "2025-02-19T20:16:35Z")

</div>

I would love something in DFX  
But ill work with these for now. thank you

---

<div class="post-metadata">

**Author:** ![anon74414410](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@anon74414410](https://forum.dfinity.org/u/anon74414410)\
**Post date:** [February 19, 2025, 10:18pm UTC](https://forum.dfinity.org/t/dfx-sync-upload-assets-to-motoko-asset-canister/41358/4 "2025-02-19T22:18:56Z")

</div>

The `@dfinity/assets` npm package is regularly kept up to date along with the rest of the `agent-js` suite
