Changes between Version 2 and Version 3 of control-panel/alternative-interfaces
- Timestamp:
- Jul 19, 2013, 4:34:47 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
control-panel/alternative-interfaces
v2 v3 142 142 == Using the command line (red-cli) == 143 143 144 The command line program is only accessible to administrators and can only be run from the command line on hay .mayfirst.org.144 The command line program is only accessible to administrators and can only be run from the command line on hay as `www-data@hay.mayfirst.org`. 145 145 146 146 The cli program is in: /usr/local/share/red/ui/sbin/red-cli … … 160 160 }}} 161 161 162 In order to insert an item, the syntax is a little confusing. Here's what inserting a user and corresponding email looks like: 162 163 164 {{{ 165 ./red-cli --action=insert --object=item 166 --set:hosting_order_id=THE_HOSTING_ORDER_NUMBER 167 --set:service_id=1 --set:user_account_login=test42 168 --set:user_account_password=test4242 169 --where:hosting_order_identifier=THE_HOSTING_ORDER_DOMAIN.org; 170 171 ./red-cli --action=insert --object=item 172 --set:hosting_order_id=THE_HOSTING_ORDER_NUMBER 173 --set:service_id=2 --set:email_address=test@THE_DOMAIN_NAME.org 174 --set:email_address_recipient=test42 175 --where:hosting_order_identifier=THE_HOSTING_ORDER_DOMAIN.org; 176 }}}