Author Topic: Command line activation  (Read 556 times)

Offline Kevin M. Cox

  • Sr. Member
  • ****
  • Posts: 334
  • PM 5.0 Build 19695 | macOS 10.13.6
    • View Profile
    • Kevin M. Cox | Photojournalist
Command line activation
« on: June 14, 2018, 11:16:45 am »
Hey Kirk, has anything changed recently for the command line activation of PM (macOS)?

Documentation: http://wiki.camerabits.com/en/index.php/User_Manual_Flat_View#Activation_via_Command_Line

I'm getting an error I didn't see before when I was testing this out:

Code: [Select]
sudo "/Applications/Photo Mechanic 5.app/Contents/MacOS/Photo Mechanic 5" --activate --name=Galveston\ Newspapers,\ Inc. --license=XXXXX-XXXXX-XXXXX-XXXXX-XXXXXX
After the update to the latest build the command is now returning:

Code: [Select]
Incorrect number of arguments (4) for activate, should be 4 or more.
Kevin M. Cox | Photojournalist
http://www.KevinCox.com

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 18601
    • View Profile
    • Camera Bits, Inc.
Re: Command line activation
« Reply #1 on: June 14, 2018, 02:01:56 pm »
Kevin,

Hey Kirk, has anything changed recently for the command line activation of PM (macOS)?

Documentation: http://wiki.camerabits.com/en/index.php/User_Manual_Flat_View#Activation_via_Command_Line

I'm getting an error I didn't see before when I was testing this out:

Code: [Select]
sudo "/Applications/Photo Mechanic 5.app/Contents/MacOS/Photo Mechanic 5" --activate --name=Galveston\ Newspapers,\ Inc. --license=XXXXX-XXXXX-XXXXX-XXXXX-XXXXXX
After the update to the latest build the command is now returning:

Code: [Select]
Incorrect number of arguments (4) for activate, should be 4 or more.

Yes, sorry.  We forgot to document the change.  You need to pass a "description" of the machine being activated.  It's just a string of characters, anything you want really.  The parameter is --description="description of this computer"

-Kirk

Offline Kevin M. Cox

  • Sr. Member
  • ****
  • Posts: 334
  • PM 5.0 Build 19695 | macOS 10.13.6
    • View Profile
    • Kevin M. Cox | Photojournalist
Re: Command line activation
« Reply #2 on: June 15, 2018, 05:57:04 pm »
Thanks Kirk.

Any specific information y'all are looking for to be fed there? (I'm leaning towards computer name.) Does it need to be unique for each computer activated?

It doesn't look like activation details, only count, is available in the account portal.
Kevin M. Cox | Photojournalist
http://www.KevinCox.com

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 18601
    • View Profile
    • Camera Bits, Inc.
Re: Command line activation
« Reply #3 on: June 16, 2018, 06:25:19 am »
Kevin,

Thanks Kirk.

Any specific information y'all are looking for to be fed there? (I'm leaning towards computer name.) Does it need to be unique for each computer activated?

It doesn't look like activation details, only count, is available in the account portal.

It can be anything you want.  Basically when activation problems arise and users call us for help, having a description that our techs can read back to the user will help find older activations that can be removed on our end.

In the next build, I will probably make that parameter optional and 'auto-generate' it when it isn't provided.  If you try to enter a new license from within PM, the registration dialog does exactly this.  (you can check it out for yourself if you're curious.)

-Kirk

Offline Kevin M. Cox

  • Sr. Member
  • ****
  • Posts: 334
  • PM 5.0 Build 19695 | macOS 10.13.6
    • View Profile
    • Kevin M. Cox | Photojournalist
Re: Command line activation
« Reply #4 on: July 23, 2018, 09:35:29 am »
Very cool. Looks like the auto-generated description is: Computer Name - Model - Serial number.

I can't see any reason to change that when activating from the command line so will just go with the default and skip that parameter completely.
Kevin M. Cox | Photojournalist
http://www.KevinCox.com