Copy the project ref from the target project settings page, General section.

List the projects visible to the current CLI login.

If the project is missing from the list, log the CLI into the account that owns the project and list again.

Check the project is not paused or deleted in the dashboard.

Re-run the link command with the exact ref.