# w3up-cli UCAN Delegation
1. Create a new account and register it
- `w3up id`
- `w3up register <email>`
2. Create second agent
- `w3up id --profile second` create the second account and **save the agent did**
3. Delegate capabilities to another agent
- `w3up delegate to <second agent did>` use the DID saved in **step 2**, this will create a `delegation.txt` file that you will need in step 5.
4. Use the first account to upload a file
- `w3up upload <file>`
- `w3up list`
5. List uploaded files from the second account. Start by import the previous imported delegation file with alias name `main` (default profile value).
- `w3up delegate import delegation.txt main --profile second`
- `w3up delegate switch main --profile second` to select the account delegation just imported in the previous step with alias `main`.
- `w3up list --profile second`
6. Export settings for the first account to create HTTP API Server for delegations (for Challenge 2)
- `w3up settings export settings.json`
<!--
1. Create a new account and register it
- `w3up id`
- `w3up register <email>`
3. Export settings for the first account and reset to create a second account
- `w3up settings export settings.json`
- `w3up settings reset`
- `w3up id` create the second account
- run `w3up whoami` and **save the agent did**
5. Export settings for the second account
- `w3up export-settings second.json`
7. Delegate capabilities to another agent
- `w3up import-settings settings.json`
- `w3up delegate <second agent did>` use the DID saved in **step 3**, this will create a `delegation.car` file that you will need in step 6.
9. Use the first account to upload a file
- `w3up upload <file>`
- `w3up list`
11. List uploaded files from the second account
- `w3up import-settings second.json`
- `w3up import-delegation delegation.car <name>`
- `w3up switch-accounts <name>` to select the account delegation just imported in the previous step.
- `w3up list`
-->