Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Question How to move a badge without y/n prompt via ucd.exe?

Discussion in 'Unity Cloud Content Delivery' started by Peter77, Jul 14, 2021.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,622
    Using the following command to add a badge to a release:
    Code (CSharp):
    1. ucd.exe badges add test_1 myReleaseID --bucket myBucketID
    outputs "This badge already exists and will be moved from this release:" and then waits for user input, in case this badge already exists.

    I'm looking for an option to suppress the y/n prompt and force the tool to move the badge. I tried the
    --force
    option, but the y/n prompt was still shown:
    Code (CSharp):
    1. ucd.exe badges add test_1 myReleaseID --bucket myBucketID --force
    How can I force that the badge is moved?

    I'm using
    ucd_0.9.9
    and run it on a Windows Jenkins Server.
     
  2. timtunity3d

    timtunity3d

    Unity Technologies

    Joined:
    Oct 1, 2015
    Posts:
    131
    The CLI is setup so that if you redirect the output it will run in non-interactive mode. So you can do something like this:

    ucd.exe badges add testbadge [release_id] --bucket [bucket_id] > badge.log
    type badge.log

    I've also created a ticket to make this possible to do with just a command line flag.
     
    Peter77 likes this.
  3. ChristinaGuo

    ChristinaGuo

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    48
    Hi @Peter77 , great news! We just released CLI v0.9.14. Which now allows you to disable the y/n prompt! Other updates include:
    • --interactive flag added globally (to disable y/n prompt)
    • promote-only bucket support
    • added --release to entries sync command
    • improved upload behavior of sync
    • added --badge with releases create command (and with entries sync when --release is specified)
     
    Peter77 likes this.
  4. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,622
    That's music to my ears, thank you!