proca
v1.7.5
Published
Access the proca api
Readme
Command line access the proca api
This is to manage the components of campaigns as an admin, or to integrate with external tools (eg. get counters and stats). For the widget builder, check @proca/widget
Proca: Progressive Campaigning
Proca is an open-source campaign toolkit designed to empower activists and organisations in their digital advocacy efforts. It provides a flexible and customisable platform for creating and managing online petitions, email campaigns, and other forms of digital engagement, enabling users to effectively mobilise supporters and drive social change.
One of Proca's standout features is its robust support for coalition campaigns, allowing multiple organisations to collaborate seamlessly on shared initiatives. This coalition functionality enables partners to pool resources, amplify their collective voice, and reach a broader audience whilst maintaining individual branding and supporter relationships. By facilitating data sharing and joint campaign management, Proca helps coalitions to maximise their impact, streamline operations, and present a united front on critical issues, all whilst ensuring compliance with data protection regulations.
usage
global installation
if you have or plan to have multiple servers (eg. production and staging) or multiple users, you can setup multiple environments. each proca command support a --env param (optional, 'default' if not specified.
All the examples are using the default environment, add --env=staging if you need to access another server than your default one. By convention, we keep default for production.
$ npm install -g proca
$# if you don't have your API token, generate one
$ proca user reset --email <your_email> --passowrd <your password>
$ proca config init --token=<API-token>you can set up the config folder the widget builder will use to store the caches. skip unless you want a different one than the default (your/widget/folder/config).
local development
$ git clone https://github.com/fixthestatusquo/proca-cli.git
$ cd proca-cli
$ npm install
$ npm link # let the proca widget and other use the local version
$./proca-cli config add --env=local --url=http://localhost:4000/api
$./proca-cli config server --env=local #check if the config is working
$./proca-cli config user #check if the config is workingyou should also use the local proca-api in your widget generator
$ cd /your/path/to/proca
$ npm link proca # use the local proca-cli repoCommands
proca action addproca action confirmproca action countproca action list [TITLE]proca action replayproca action requeueproca campaign add [TITLE]proca campaign closeproca campaign deleteproca campaign getproca campaign list [TITLE]proca campaign mttproca campaign statusproca config add [ENV] [HUMAN] [JSON] [CSV] [SIMPLIFY]proca config folderproca config init [ENV] [HUMAN] [JSON] [CSV] [SIMPLIFY]proca config serverproca config set [KEY] [VALUE]proca config setup [ENV] [HUMAN] [JSON] [CSV] [SIMPLIFY]proca config userproca contact countproca contact list [TITLE]proca help [COMMAND]proca org addproca org crmproca org deleteproca org emailproca org getproca pluginsproca plugins add PLUGINproca plugins:inspect PLUGIN...proca plugins install PLUGINproca plugins link PATHproca plugins remove [PLUGIN]proca plugins resetproca plugins uninstall [PLUGIN]proca plugins unlink [PLUGIN]proca plugins updateproca service addproca service listproca target addproca template addproca template listproca user getproca user inviteproca user joinproca user leaveproca user listproca user meproca user reset [USER]proca user whoamiproca widget addproca widget deleteproca widget getproca widget list
proca action add
USAGE
$ proca action add [ID_NAME_DXID...] -i <value> --firstname <value> --email <value>
[--json | --human | --csv] [--env <value>] [--simplify] [-x <value>] [-n <the_short_name>] [--testing] [--optin]
[--action_type <value>] [--lastname <value>] [--street <value>] [--locality <value>] [--region <value>] [--country
<value>] [--utm <value>] [--target <value>] [--subject <value>] [--body <value>]
FLAGS
-i, --id=<value> (required) widget's id
-n, --name=<the_short_name> name
-x, --dxid=<value> dxid
--action_type=<value> [default: register]
--body=<value> [mtt] body of the email
--country=<value> 2-letter country iso code
--email=<value> (required) email
--env=<value> [default: default] allow to switch between configurations (server or users)
--firstname=<value> (required) supporter's firstname
--lastname=<value>
--locality=<value>
--[no-]optin Whether the user opts in (default: false). Use --optin to enable or --no-optin to
explicitly disable.
--region=<value>
--street=<value>
--subject=<value> [mtt] subject of the email
--target=<value> [mtt] uid of the target
--[no-]testing Run action in testing mode (default: true). Use --no-testing to disable.
--utm=<value> utm=campaign.source.medium
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
EXAMPLES
$ proca action add -i <widget_id> --firstname=John [email protected]
$ proca action add -i <widget_id> --firstname=John [email protected] --country=FR custom1=A custom2=B
$ proca action add -i <widget_id> --firstname=John [email protected] target=715a9580-cfe6-4005-9e23-61a62ddecfea --subject='MTT subject' --body='message MTT'proca action confirm
Should the supporter confirm the action? it can be set either for all the widgets or an organisation or all the widgets of a campaign
USAGE
$ proca action confirm [--json | --human | --csv] [--env <value>] [--simplify] [--org
<value>] [--campaign <value>] [--confirm] [--template <value>]
FLAGS
--campaign=<value> campaign collecting the action
--[no-]confirm should the supporters confirm each action
--env=<value> [default: default] allow to switch between configurations (server or users)
--org=<value> organisation collecting the action
--template=<value> template for sending the message
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
Should the supporter confirm the action? it can be set either for all the widgets or an organisation or all the
widgets of a campaignproca action count
counter of actions
USAGE
$ proca action count [ID_NAME_DXID] [--json | --human | --csv] [--env <value>]
[--simplify] [-i <value> | -n <the_short_name> | -x <value>]
FLAGS
-i, --id=<value>
-n, --name=<the_short_name> name
-x, --dxid=<value> dxid
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
counter of actions
EXAMPLES
$ proca action count --id <id of the campaign>
$ proca action count --name <name of the campaign>proca action list [TITLE]
USAGE
$ proca action list [TITLE] -o <organisation name> [--json | --human | --csv] [--env
<value>] [-c <campaign name>] [--limit <value>] [--today | --after 2025-04-09] [--optin] [--testing] [--doi] [--utm
| --simplify] [--comment | ]
ARGUMENTS
TITLE name of the campaign, % for wildchar
FLAGS
-c, --campaign=<campaign name> name of the campaign, % for wildchar
-o, --org=<organisation name> (required) campaigns of the organisation (coordinator or partner)
--after=2025-04-09 only actions after a date
--[no-]comment display the comment
--doi only export the double optin actions
--env=<value> [default: default] allow to switch between configurations (server or users)
--limit=<value> max number of actions
--optin only export the optin actions
--testing also export the test actions
--today only actions today
--[no-]utm display the utm tracking parameters
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
EXAMPLES
$ proca action list %pizza%proca action replay
USAGE
$ proca action replay -o <organisation name> [--json | --human | --csv] [--env <value>]
[--simplify] [-c <campaign title>]
FLAGS
-c, --campaign=<campaign title> name of the campaign, % for wildchar
-o, --org=<organisation name> (required) campaigns of the organisation (coordinator or partner)
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
EXAMPLES
$ proca action replay %pizza%proca action requeue
requeue actions
USAGE
$ proca action requeue -o <org name> -q
CUSTOM_ACTION_CONFIRM|CUSTOM_ACTION_DELIVER|CUSTOM_SUPPORTER_CONFIRM|EMAIL_SUPPORTER|SQS|WEBHOOK [--json | --human |
--csv] [--env <value>] [--simplify] [-c <campaign name>] [--limit <value>] [--today | --after 2025-04-09] [--optin]
[--testing] [--doi]
FLAGS
-c, --campaign=<campaign name> name of the campaign, % for wildchar
-o, --org=<org name> (required) name of the org
-q, --queue=<option> (required) [default: CUSTOM_ACTION_DELIVER] queue to redeliver to
<options: CUSTOM_ACTION_CONFIRM|CUSTOM_ACTION_DELIVER|CUSTOM_SUPPORTER_CONFIRM|EMAIL_S
UPPORTER|SQS|WEBHOOK>
--after=2025-04-09 only actions after a date
--doi only export the double optin actions
--env=<value> [default: default] allow to switch between configurations (server or users)
--limit=<value> [default: 1000] how many actions per page
--optin only export the optin actions
--testing also export the test actions
--today only actions today
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
requeue actions
EXAMPLES
$ proca action requeueproca campaign add [TITLE]
USAGE
$ proca campaign add [TITLE] -n <campaign name> -o <org name> [--json | --human |
--csv] [--env <value>] [--simplify]
ARGUMENTS
TITLE title of the campaign
FLAGS
-n, --name=<campaign name> (required) name of the campaign
-o, --org=<org name> (required) name of the coordinator
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
EXAMPLES
$ proca campaign add -n <new_campaign> the full name of the campaignproca campaign close
USAGE
$ proca campaign close [ID_NAME_DXID] --status draft|live|closed|ignored [--json |
--human | --csv] [--env <value>] [--simplify]
FLAGS
--env=<value> [default: default] allow to switch between configurations (server or users)
--status=<option> (required) Status to set
<options: draft|live|closed|ignored>
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
ALIASES
$ proca campaign close
EXAMPLES
$ proca campaign close -name <campaign>
$ proca campaign close -i <campaign_id>proca campaign delete
delete a campaign
USAGE
$ proca campaign delete [--json | --human | --csv] [--env <value>] [--simplify] [-i
<organisation name>] [-n <campaign name>]
FLAGS
-i, --id=<organisation name> id of the campaign
-n, --name=<campaign name> name of the campaign
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
delete a campaign
EXAMPLES
$ proca campaign delete -i 42proca campaign get
view a campaign
USAGE
$ proca campaign get [ID_NAME_DXID] [--json | --human | --csv] [--env <value>]
[--simplify] [-i <value> | -n <the_short_name> | -x <value>] [--config] [--stats] [--locale <value>]
FLAGS
-i, --id=<value>
-n, --name=<the_short_name> name
-x, --dxid=<value> dxid
--[no-]config display the config
--env=<value> [default: default] allow to switch between configurations (server or users)
--locale=<value> display a locale
--[no-]stats display the stats
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
view a campaign
EXAMPLES
$ proca campaign get -i 42proca campaign list [TITLE]
list all the campaigns
USAGE
$ proca campaign list [TITLE] [--json | --human | --csv] [--env <value>] [--simplify]
[-o <organisation name>] [-t <campaign title>] [--stats]
ARGUMENTS
TITLE name of the campaign, % for wildchar
FLAGS
-o, --org=<organisation name> campaigns of the organisation (coordinator or partner)
-t, --title=<campaign title> name of the campaign, % for wildchar
--env=<value> [default: default] allow to switch between configurations (server or users)
--[no-]stats display the stats
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
list all the campaigns
EXAMPLES
$ proca campaign list %pizza%proca campaign mtt
set the mail to target (mtt) params
USAGE
$ proca campaign mtt [ID_NAME_DXID] [--json | --human | --csv] [--env <value>]
[--simplify] [-i <value> | -n <the_short_name> | -x <value>] [--from <value>] [--to <value>] [--template <value>]
[--period <value>] [--email <value>] [--cc <value>] [--sender]
FLAGS
-i, --id=<value>
-n, --name=<the_short_name> name
-x, --dxid=<value> dxid
--cc=<value> comma-separated list of CC email addresses
--email=<value> test email address
--env=<value> [default: default] allow to switch between configurations (server or users)
--from=<value> start date (yyyy-mm-dd)
--period=<value> [default: 09:09-18:18] period of the day (HH:HH-HH:HH)
--sender add sender to CC
--template=<value> mtt template to use
--to=<value> end date (yyyy-mm-dd)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
set the mail to target (mtt) params
EXAMPLES
$ proca campaign mtt -n <test-mtt-campaign>proca campaign status
USAGE
$ proca campaign status [ID_NAME_DXID] --status draft|live|closed|ignored [--json |
--human | --csv] [--env <value>] [--simplify]
FLAGS
--env=<value> [default: default] allow to switch between configurations (server or users)
--status=<option> (required) Status to set
<options: draft|live|closed|ignored>
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
ALIASES
$ proca campaign close
EXAMPLES
$ proca campaign status -name <campaign>
$ proca campaign status -i <campaign_id>proca config add [ENV] [HUMAN] [JSON] [CSV] [SIMPLIFY]
create setting to access to a server
USAGE
$ proca config add [ENV] [HUMAN] [JSON] [CSV] [SIMPLIFY] [--json | --human | --csv]
[--env <value>] [--simplify] [--url http://localhost:4000] [--token API-token>] [--email [email protected]] [--folder
/var/www/proca/config.example]
ARGUMENTS
ENV [default: default] allow to switch between configurations (server or users)
HUMAN [default: true] Format output to be read on screen by a human [default]
JSON Format output as json
CSV Format output as csv
SIMPLIFY flatten and filter to output only the most important attributes, mostly relevant for json
FLAGS
[email protected] user email on proca server
--env=<value> [default: default] allow to switch between configurations (server or users)
--folder=/var/www/proca/config.example config folder (in the proca widget generator)
--token=API-token> user token on proca server
--url=http://localhost:4000 [default: https://api.proca.app/api] url of the proca server api
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
create setting to access to a server
ALIASES
$ proca config setup
$ proca config init
EXAMPLES
$ proca config add [email protected] --token=API-12345789proca config folder
Check and create config folders
USAGE
$ proca config folder [--json | --human | --csv] [--env <value>] [--simplify]
FLAGS
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
Check and create config folders
Check if the PROCA_CONFIG_FOLDER is set up, if it is, check if the required subfolders exists and create if notproca config init [ENV] [HUMAN] [JSON] [CSV] [SIMPLIFY]
create setting to access to a server
USAGE
$ proca config init [ENV] [HUMAN] [JSON] [CSV] [SIMPLIFY] [--json | --human | --csv]
[--env <value>] [--simplify] [--url http://localhost:4000] [--token API-token>] [--email [email protected]] [--folder
/var/www/proca/config.example]
ARGUMENTS
ENV [default: default] allow to switch between configurations (server or users)
HUMAN [default: true] Format output to be read on screen by a human [default]
JSON Format output as json
CSV Format output as csv
SIMPLIFY flatten and filter to output only the most important attributes, mostly relevant for json
FLAGS
[email protected] user email on proca server
--env=<value> [default: default] allow to switch between configurations (server or users)
--folder=/var/www/proca/config.example config folder (in the proca widget generator)
--token=API-token> user token on proca server
--url=http://localhost:4000 [default: https://api.proca.app/api] url of the proca server api
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
create setting to access to a server
ALIASES
$ proca config setup
$ proca config init
EXAMPLES
$ proca config init [email protected] --token=API-12345789proca config server
get the server config
USAGE
$ proca config server [--json | --human | --csv] [--env <value>] [--simplify]
FLAGS
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
get the server configproca config set [KEY] [VALUE]
update the setting used to authenticate to the servers and services
USAGE
$ proca config set [KEY] [VALUE] [--json | --human | --csv] [--env <value>]
[--simplify] [--environment <value>] [--url <url>] [--token <API-token>]
ARGUMENTS
KEY variable name
VALUE value
FLAGS
--env=<value> [default: default] allow to switch between configurations (server or users)
--environment=<value> [default: default] environment
--token=<API-token> user token on proca server
--url=<url> [default: https://api.proca.app/api] url of the proca server api
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
update the setting used to authenticate to the servers and services
ALIASES
$ proca config setup
EXAMPLES
$ proca config set [email protected] --token=API-12345789
$ proca config set VAR1 VALUEproca config setup [ENV] [HUMAN] [JSON] [CSV] [SIMPLIFY]
create setting to access to a server
USAGE
$ proca config setup [ENV] [HUMAN] [JSON] [CSV] [SIMPLIFY] [--json | --human | --csv]
[--env <value>] [--simplify] [--url http://localhost:4000] [--token API-token>] [--email [email protected]] [--folder
/var/www/proca/config.example]
ARGUMENTS
ENV [default: default] allow to switch between configurations (server or users)
HUMAN [default: true] Format output to be read on screen by a human [default]
JSON Format output as json
CSV Format output as csv
SIMPLIFY flatten and filter to output only the most important attributes, mostly relevant for json
FLAGS
[email protected] user email on proca server
--env=<value> [default: default] allow to switch between configurations (server or users)
--folder=/var/www/proca/config.example config folder (in the proca widget generator)
--token=API-token> user token on proca server
--url=http://localhost:4000 [default: https://api.proca.app/api] url of the proca server api
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
create setting to access to a server
ALIASES
$ proca config setup
$ proca config init
EXAMPLES
$ proca config setup [email protected] --token=API-12345789proca config user
fetch the information about the current user (based on the token)
USAGE
$ proca config user [--json | --human | --csv] [--env <value>] [--simplify]
FLAGS
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
fetch the information about the current user (based on the token)
ALIASES
$ proca user whoami
$ proca user me
EXAMPLES
$ proca config userproca contact count
counter of supporters
USAGE
$ proca contact count [ID_NAME_DXID] [--json | --human | --csv] [--env <value>]
[--simplify] [-i <value> | -n <the_short_name> | -x <value>]
FLAGS
-i, --id=<value>
-n, --name=<the_short_name> name
-x, --dxid=<value> dxid
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
counter of supporters
EXAMPLES
$ proca contact count --id <id of the campaign>
$ proca contact count --name <name of the campaign>proca contact list [TITLE]
USAGE
$ proca contact list [TITLE] -o <organisation name> [--json | --human | --csv] [--env
<value>] [-c <campaign title>] [-n <value>] [--today | --after 2025-04-09] [--optin] [--testing] [--doi] [--utm |
--simplify] [--comment | ]
ARGUMENTS
TITLE name of the campaign, % for wildchar
FLAGS
-c, --campaign=<campaign title> name of the campaign, % for wildchar
-n, --limit=<value> max number of actions
-o, --org=<organisation name> (required) campaigns of the organisation (coordinator or partner)
--after=2025-04-09 only actions after a date
--[no-]comment display the comment
--doi only export the double optin actions
--env=<value> [default: default] allow to switch between configurations (server or users)
--optin only export the optin actions
--testing also export the test actions
--today only actions today
--[no-]utm display the utm tracking parameters
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
EXAMPLES
$ proca contact list %pizza%proca help [COMMAND]
Display help for proca.
USAGE
$ proca help [COMMAND...] [-n]
ARGUMENTS
COMMAND... Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for proca.See code: @oclif/plugin-help
proca org add
USAGE
$ proca org add [--json | --human | --csv] [--env <value>] [--simplify] [--twitter
<screen name>] [-n <org acronym/name>] [-t <org full name>]
FLAGS
-n, --name=<org acronym/name> short name of the org
-t, --title=<org full name> title/full name of the org
--env=<value> [default: default] allow to switch between configurations (server or users)
--twitter=<screen name> twitter account
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
EXAMPLES
$ proca org add --name <twitter of the organisation> --title='this is an organisation'
$ proca org add --twitter <twitter of the organisation>proca org crm
view a org crm synchroniser
USAGE
$ proca org crm -n <org name> [--json | --human | --csv] [--env <value>]
[--simplify] [--synchronize]
FLAGS
-n, --name=<org name> (required) name of the org
--env=<value> [default: default] allow to switch between configurations (server or users)
--[no-]synchronize enable or disable the synchronisation queue
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
view a org crm synchroniserproca org delete
USAGE
$ proca org delete [ID_NAME_DXID] [--json | --human | --csv] [--env <value>]
[--simplify] [-i <value> | -n <org name> | -x <value>]
FLAGS
-i, --id=<value>
-n, --name=<org name> name of the org
-x, --dxid=<value> dxid
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
EXAMPLES
$ proca org delete <organisation_name>proca org email
Set service, usually email backend for an org
USAGE
$ proca org email [ID_NAME_DXID] --org <value> --mailer mailjet ses stripe
test_stripe system preview webhook supabase smtp [--json | --human | --csv] [--env <value>] [--simplify] [--from
<value>]
FLAGS
--env=<value> [default: default] allow to switch
between configurations (server or users)
--from=<value> Email address to send from (default:
<org>@proca.app)
--mailer=mailjet ses stripe test_stripe system preview webhook supabase smtp (required) [default: MAILJET] service to
send emails
--org=<value> (required) organisation running the
service
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
Set service, usually email backend for an orgproca org get
view a org
USAGE
$ proca org get [ID_NAME_DXID] [--json | --human | --csv] [--env <value>]
[--simplify] [-n <org name>] [--config] [--keys] [--campaigns] [--users]
FLAGS
-n, --name=<org name> name of the org
--[no-]campaigns
--[no-]config display the config
--env=<value> [default: default] allow to switch between configurations (server or users)
--[no-]keys
--[no-]users
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
view a org
EXAMPLES
$ proca org get <name of the ngo>proca plugins
List installed plugins.
USAGE
$ proca plugins [--json] [--core]
FLAGS
--core Show core plugins.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
List installed plugins.
EXAMPLES
$ proca pluginsSee code: @oclif/plugin-plugins
proca plugins add PLUGIN
Installs a plugin into proca.
USAGE
$ proca plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]
ARGUMENTS
PLUGIN... Plugin to install.
FLAGS
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
-h, --help Show CLI help.
-s, --silent Silences npm output.
-v, --verbose Show verbose npm output.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Installs a plugin into proca.
Uses npm to install plugins.
Installation of a user-installed plugin will override a core plugin.
Use the PROCA_NPM_LOG_LEVEL environment variable to set the npm loglevel.
Use the PROCA_NPM_REGISTRY environment variable to set the npm registry.
ALIASES
$ proca plugins add
EXAMPLES
Install a plugin from npm registry.
$ proca plugins add myplugin
Install a plugin from a github url.
$ proca plugins add https://github.com/someuser/someplugin
Install a plugin from a github slug.
$ proca plugins add someuser/somepluginproca plugins:inspect PLUGIN...
Displays installation properties of a plugin.
USAGE
$ proca plugins inspect PLUGIN...
ARGUMENTS
PLUGIN... [default: .] Plugin to inspect.
FLAGS
-h, --help Show CLI help.
-v, --verbose
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Displays installation properties of a plugin.
EXAMPLES
$ proca plugins inspect mypluginSee code: @oclif/plugin-plugins
proca plugins install PLUGIN
Installs a plugin into proca.
USAGE
$ proca plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]
ARGUMENTS
PLUGIN... Plugin to install.
FLAGS
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
-h, --help Show CLI help.
-s, --silent Silences npm output.
-v, --verbose Show verbose npm output.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Installs a plugin into proca.
Uses npm to install plugins.
Installation of a user-installed plugin will override a core plugin.
Use the PROCA_NPM_LOG_LEVEL environment variable to set the npm loglevel.
Use the PROCA_NPM_REGISTRY environment variable to set the npm registry.
ALIASES
$ proca plugins add
EXAMPLES
Install a plugin from npm registry.
$ proca plugins install myplugin
Install a plugin from a github url.
$ proca plugins install https://github.com/someuser/someplugin
Install a plugin from a github slug.
$ proca plugins install someuser/somepluginSee code: @oclif/plugin-plugins
proca plugins link PATH
Links a plugin into the CLI for development.
USAGE
$ proca plugins link PATH [-h] [--install] [-v]
ARGUMENTS
PATH [default: .] path to plugin
FLAGS
-h, --help Show CLI help.
-v, --verbose
--[no-]install Install dependencies after linking the plugin.
DESCRIPTION
Links a plugin into the CLI for development.
Installation of a linked plugin will override a user-installed or core plugin.
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
command will override the user-installed or core plugin implementation. This is useful for development work.
EXAMPLES
$ proca plugins link mypluginSee code: @oclif/plugin-plugins
proca plugins remove [PLUGIN]
Removes a plugin from the CLI.
USAGE
$ proca plugins remove [PLUGIN...] [-h] [-v]
ARGUMENTS
PLUGIN... plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ proca plugins unlink
$ proca plugins remove
EXAMPLES
$ proca plugins remove mypluginproca plugins reset
Remove all user-installed and linked plugins.
USAGE
$ proca plugins reset [--hard] [--reinstall]
FLAGS
--hard Delete node_modules and package manager related files in addition to uninstalling plugins.
--reinstall Reinstall all plugins after uninstalling.See code: @oclif/plugin-plugins
proca plugins uninstall [PLUGIN]
Removes a plugin from the CLI.
USAGE
$ proca plugins uninstall [PLUGIN...] [-h] [-v]
ARGUMENTS
PLUGIN... plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ proca plugins unlink
$ proca plugins remove
EXAMPLES
$ proca plugins uninstall mypluginSee code: @oclif/plugin-plugins
proca plugins unlink [PLUGIN]
Removes a plugin from the CLI.
USAGE
$ proca plugins unlink [PLUGIN...] [-h] [-v]
ARGUMENTS
PLUGIN... plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ proca plugins unlink
$ proca plugins remove
EXAMPLES
$ proca plugins unlink mypluginproca plugins update
Update installed plugins.
USAGE
$ proca plugins update [-h] [-v]
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Update installed plugins.See code: @oclif/plugin-plugins
proca service add
Set service, usually email backend for an org, the specific meaning of each param is dependant on the service
USAGE
$ proca service add -o <value> --type
mailjet|ses|stripe|test_stripe|preview|webhook|supabase|smtp [--json | --human | --csv] [--env <value>] [--simplify]
[--user <value>] [--password <value>] [--host <value>] [--path <value>]
FLAGS
-o, --org=<value> (required) organisation running the service
--env=<value> [default: default] allow to switch between configurations (server or users)
--host=<value> server of the service
--password=<value> credential of the account on the service
--path=<value> path on the service
--type=<option> (required) [default: system] type of the service
<options: mailjet|ses|stripe|test_stripe|preview|webhook|supabase|smtp>
--user=<value> credential of the account on the service
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
Set service, usually email backend for an org, the specific meaning of each param is dependant on the serviceproca service list
list services set for an organisation
USAGE
$ proca service list -o <value> [--json | --human | --csv] [--env <value>]
[--simplify]
FLAGS
-o, --org=<value> (required) organisation running the service
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
list services set for an organisationproca target add
USAGE
$ proca target add -c <value> --name <value> --email <value> [--json | --human |
--csv] [--env <value>] [--simplify] [--external_id <value>]
FLAGS
-c, --campaign=<value> (required) mtt campaign to add the target
--email=<value> (required) email of the target
--env=<value> [default: default] allow to switch between configurations (server or users)
--external_id=<value> external id of the target
--name=<value> (required) name of the target
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for jsonproca template add
USAGE
$ proca template add -o <value> [--json | --human | --csv] [--env <value>] [--simplify]
[--type thankyou|doi|confirm|doi_thankyou|doi_confirm] [-l <locale>] [-n by default type@language] [-s 'template:'
+ type]
FLAGS
-l, --lang=<locale> [default: en] language
-n, --name=by default type@language name
-o, --org=<value> (required) organisation
-s, --subject='template:' + type subject
--env=<value> [default: default] allow to switch between configurations (server or users)
--type=<option> [default: thankyou]
<options: thankyou|doi|confirm|doi_thankyou|doi_confirm>
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for jsonproca template list
list services set for an organisation
USAGE
$ proca template list -o <value> [--json | --human | --csv] [--env <value>]
[--simplify]
FLAGS
-o, --org=<value> (required) organisation having the templates
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
list services set for an organisationproca user get
fetch the information about a user
USAGE
$ proca user get [--json | --human | --csv] [--env <value>] [--simplify] [--email
<value>] [-o <org name>] [-i <value>]
FLAGS
-i, --id=<value> id of the user
-o, --org=<org name> name of the org
--email=<value> user email
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
fetch the information about a user
EXAMPLES
$ proca user getproca user invite
invite a user to join an organisation with a role
USAGE
$ proca user invite -o <org name> -u <user email> [--json | --human | --csv] [--env
<value>] [--simplify] [--role owner|campaigner|coordinator|translator]
FLAGS
-o, --org=<org name> (required) name of the org
-u, --user=<user email> (required) email
--env=<value> [default: default] allow to switch between configurations (server or users)
--role=<option> [default: campaigner] permission level in that org
<options: owner|campaigner|coordinator|translator>
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
invite a user to join an organisation with a role
EXAMPLES
$ proca user inviteproca user join
let a user join an organisation with a role
USAGE
$ proca user join -o <org name> [--json | --human | --csv] [--env <value>]
[--simplify] [--role owner|campaigner|coordinator|translator] [-u <user email>]
FLAGS
-o, --org=<org name> (required) name of the org
-u, --user=<user email> email
--env=<value> [default: default] allow to switch between configurations (server or users)
--role=<option> [default: campaigner] permission level in that org
<options: owner|campaigner|coordinator|translator>
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
let a user join an organisation with a role
EXAMPLES
$ proca user joinproca user leave
leave a org
USAGE
$ proca user leave -o <org name> [--json | --human | --csv] [--env <value>]
[--simplify] [-u <user email>]
FLAGS
-o, --org=<org name> (required) name of the org
-u, --user=<user email> email
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
leave a org
EXAMPLES
$ proca user leave -i 42proca user list
list all the users
USAGE
$ proca user list -o <value> [--json | --human | --csv] [--env <value>]
[--simplify]
FLAGS
-o, --org=<value> (required) organisation
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
list all the users
EXAMPLES
$ proca user list %pizza%proca user me
fetch the information about the current user (based on the token)
USAGE
$ proca user me [--json | --human | --csv] [--env <value>] [--simplify]
FLAGS
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
fetch the information about the current user (based on the token)
ALIASES
$ proca user whoami
$ proca user me
EXAMPLES
$ proca user meproca user reset [USER]
Reset user API token
USAGE
$ proca user reset [USER] [--json | --human | --csv] [--env <value>] [--simplify]
[--password <value>] [--url <value>]
ARGUMENTS
USER Username (email)
FLAGS
--env=<value> [default: default] allow to switch between configurations (server or users)
--password=<value> Password
--url=<value> URL of the Proca server API
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
Reset user API tokenproca user whoami
fetch the information about the current user (based on the token)
USAGE
$ proca user whoami [--json | --human | --csv] [--env <value>] [--simplify]
FLAGS
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
fetch the information about the current user (based on the token)
ALIASES
$ proca user whoami
$ proca user me
EXAMPLES
$ proca user whoamiproca widget add
USAGE
$ proca widget add -c <campaign name> [--json | --human | --csv] [--env <value>]
[--simplify] [-o <en>] [-l <en>] [-n by default <campaign>/<org>/<lang>]
FLAGS
-c, --campaign=<campaign name> (required) name of the campaign
-l, --lang=<en> [default: en] language
-n, --name=by default <campaign>/<org>/<lang> url slug
-o, --org=<en> organisation
--env=<value> [default: default] allow to switch between configurations (server or
users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for jsonproca widget delete
Delete a widget
USAGE
$ proca widget delete [ID_NAME_DXID] [--json | --human | --csv] [--env <value>]
[--simplify] [-i <value> | -n <the_short_name> | -x <value>]
FLAGS
-i, --id=<value>
-n, --name=<the_short_name> name
-x, --dxid=<value> dxid
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
Delete a widgetproca widget get
view a widget
USAGE
$ proca widget get [ID_NAME_DXID] [--json | --human | --csv] [--env <value>]
[--simplify] [-i <value> | -n <the_short_name> | -x <value>] [--config]
FLAGS
-i, --id=<value>
-n, --name=<the_short_name> name
-x, --dxid=<value> dxid
--[no-]config display the config
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
view a widget
EXAMPLES
$ proca widget get <path of the widget>proca widget list
list all the widgets of an org or campaign
USAGE
$ proca widget list [--json | --human | --csv] [--env <value>] [--simplify] [-o
<organisation name>] [-c <campaign name>] [--config]
FLAGS
-c, --campaign=<campaign name> widgets of the campaign (coordinator or partner)
-o, --org=<organisation name> widgets of the organisation (coordinator or partner)
--[no-]config get the config
--env=<value> [default: default] allow to switch between configurations (server or users)
OUTPUT FLAGS
--csv Format output as csv
--human Format output to be read on screen by a human [default]
--json Format output as json
--[no-]simplify flatten and filter to output only the most important attributes, mostly relevant for json
DESCRIPTION
list all the widgets of an org or campaign
EXAMPLES
$ proca widget list -o <organisation>