How do you import a Internet Identity principal from the nns to dfx for development?

Hello everyone,
I have been learning motoko and I have been trying to deploy my first canister. I have created a canister on the nns, and topped it up with some cycles. How do I interact with this canister in dfx? I have been trying to figure out how to import my existing internet identity principal id on the nns to dfx.
I understand that I can create a new identity on dfx, but I have already created and provided the cycles for the canister on the nns.

So far I have launched hello world on the motoko playground, and on the local replica. Day by day trying to expand my knowledge on ICP, and Motoko.
If anyone could help I would be grateful for any advice. :grinning_face_with_smiling_eyes:

You can’t use your NNS principal in dfx, that is currently just not possible. But you can add your dfx principal as a ‘controller’ of your canisters. Then both identities have ‘admin access’ over the canisters and you can deploy code to them via dfx

1 Like

I understand now. Thank you!