Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-9308

new cli.php broke csv import export

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Hi,

      bin/csv/export.php uses bin/cli as a wrapper to deal with authentication

      http://civicrm.org/blogs/xavier/api_batch_tools

      Obviously -e entity -a action don't make sense in that case but bin/cli stops and break on it

      The --action argument is required
      Usage: cli.php -e entity -a action [-u user] [-s site] [--output] [PARAMS]
      entity is the name of the entity, e.g. Contact, Event, etc.
      action is the name of the action e.g. Get, Create, etc.
      user is an optional username to run the script as
      site is the domain name of the web site (for Drupal multi site installs)
      --output will print the result from the api call
      PARAMS is one or more --param=value combinations to pass to the api

      I'd like to keep using the authentication in common, any idea?

      X+

        Attachments

          Activity

            People

            • Assignee:
              jamie Jamie McClelland
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: