DAO commands
Last updated
Was this helpful?
Last updated
Was this helpful?
Note The default mnemonic of the Aragon CLI is the same for all users. If you are going to deploy a DAO to public networks it is highly recommended that you use your own web3 provider. Instructions on that can be found (scroll down to 'Set a private key').
Uses a DAO Template to create a new DAO and prints its address.
Options:
--environment
: The environment in your arapp.json
that you want to use. Defaults to aragon:local
. Check the other . You can also use it with the --env
alias.
--use-frame
: Use Frame as a signing provider and web3 provider.
--aragon-id
: Assigns an Aragon Id to the DAO.
--template
: The aragonPM repo name of the template that is used to create the DAO. Defaults to bare-template.aragonpm.eth
.
--template-version [version-number|latest]
: The version of the repo that will be used to create the DAO. Defaults to latest
.
--fn
: The function on the template that is called to create a new DAO. Defaults to the newInstance
function for bare-template.aragonpm.eth
.
--fn-args
: The arguments that the function to create the template is called with. Defaults to an array of arguments. To use arrays use the following format ["'0xB24b...73a7', '0xB24b...73a7'"]
.
--deploy-event
: The name of the event that is emitted when the DAO is created. The DAO address must be a return argument in the event log named dao
. Defaults to DeployDao
.
--ipfs-check
: Whether to have start IPFS if not started. Defaults to true
.
Used to inspect all the installed apps in a DAO.
dao-addr
: The main address of the DAO (Kernel).
Options:
--all
: To include apps without permissions in the report.
Assigns an Aragon Id to a DAO address.
or
dao
: The main address of the DAO (Kernel).
aragon-id
: The Aragon Id.
The dao install
command installs an instance of an app in the DAO.
dao-addr
: The main address of the DAO (Kernel).
app-apm-repo
: The repo name of the app being installed (e.g. voting
or voting.aragonpm.eth
).
repo-version
: (optional) Version of the repo that will be installed; can be a version number or latest
for the newest published version. Defaults to latest
.
The dao install
command will create an instance of the app and assign permissions to the main account to perform all the protected actions in the app.
Options:
--app-init
: Name of the function that will be called to initialize an app. If you want to skip app initialization (which is not generally recommended), you can do it by set it to none
. By default it will initialize the app using initialize
function.
--app-init-args
: Arguments for calling the app init function. To use arrays use the following format ["'0xB24b...73a7', '0xB24b...73a7'"]
.
--set-permissions
: Whether to set permissions in the app. Set it to open
to allow ANY_ENTITY
on all roles.
Note All app instances of the same app in a DAO must run the same version, so installing an app with a version will effectively upgrade all app instances to this version.
The dao upgrade
command upgrades all instances of an app to a newer version.
dao-addr
: The main address of the DAO (Kernel).
app-apm-repo
: The repo name of the app being upgraded (e.g. voting
or voting.aragonpm.eth
).
repo-version
: Version of the repo that the app will be upgraded to; can be a version number or latest
for the newest published version (defaults to latest
).
aragonOS protects against having different instances of a particular app running with different versions (e.g. all the Voting app instances run the same version). Performing a dao upgrade
will upgrade all instances of the app to the version specified.
dao-addr
: The main address of the DAO (Kernel).
method
: Name of the method being executed in the app (e.g. withdrawTokens
).
arguments
: The arguments that the method will be executed with (each separated by a space).
Provides some syntax sugar over dao exec
for executing actions using Agent app instances in a DAO.
agent-proxy
: Address of the Agent app proxy.
target-addr
: Address where the action is being executed.
arguments
: The arguments that the method will be executed with (each separated by a space).
Options:
--call-data
: Raw call data.
--eth-value
: Amount of ETH from the contract that is sent with the action.
Commands used to create and interact with the tokens your DAO will use.
token-name
: Full name of the new Token.
symbol
: Symbol of the new Token.
decimal-units
: Total decimal units the new token will use. Defaults to 18
.
transfer-enabled
: Whether the new token will have transfers enabled. Defaults to true
.
token-factory-address
: Address of a MiniMe Token Factory deployed on the network. Defaults to an existing Minime Factory address for Rinkeby and Mainnet. Defaults to 0xA29EF584c389c67178aE9152aC9C543f9156E2B3
on Mainnet and 0xad991658443c56b3dE2D7d7f5d8C68F339aEef29
on Rinkeby.
Change the controller of a MiniMe token.
token-addr
: Address of the token.
new-controller-addr
: Address of the new controller.
Used to inspect the ACL state in a DAO to check its permissions.
dao-addr
: The main address of the DAO (Kernel).
Used to create a permission in the ACL. Can only be used if the permission hasn't been created before. The manager
of the permission can use dao acl grant
and dao acl revoke
to manage the permission.
dao-addr
: The main address of the DAO (Kernel).
role
: The identifier for the role. Can be the bytes32
identifier of the role or its name (e.g. INCREMENT_ROLE
).
entity
: The address of the entity that is being granted the permission by creating it.
manager
: The address of the entity that will be able to grant that permission or revoke it.
Used to grant a permission in the ACL.
dao-addr
: The main address of the DAO (Kernel).
role
: The identifier for the role. Can be the bytes32
identifier of the role or its name (e.g. INCREMENT_ROLE
).
entity
: The address of entity that is being granted the permission.
"0,GT,2"
"2,EQ,0xC7f8dDbc7B3BFd432dEAc0CA270110467EcE01c3"
"LOGIC_OP_PARAM_ID,OR,(1,2)"
"0,LT,4"
"1,EQ,42"
"LOGIC_OP_PARAM_ID,IF_ELSE,(1,2,3)"
"BLOCK_NUMBER_PARAM_ID,GT,1000"
"0,EQ,42"
"0,EQ,0"
Used to revoke a permission in the ACL.
dao-addr
: The main address of the DAO (Kernel).
role
: The identifier for the role. Can be the bytes32
identifier of the role or its name (e.g. INCREMENT_ROLE
).
entity
: The address of entity that is being revoked the permission.
Used to change the manager of a permission in the ACL.
dao-addr
: The main address of the DAO (Kernel).
role
: The identifier for the role. Can be the bytes32
identifier of the role or its name (e.g. INCREMENT_ROLE
).
manager
: The new manager for the permission.
Used to remove the manager of a permission in the ACL. The permission can be created again after removing its manager.
dao-addr
: The main address of the DAO (Kernel).
role
: The identifier for the role. Can be the bytes32
identifier of the role or its name (e.g. INCREMENT_ROLE
).
In an app is considered to be installed in a DAO if it uses the DAO Kernel as its Kernel and there are references to the app in the ACL of the DAO.
Performs transactions in your DAO directly from aragonCLI. It supports so if your account cannot perform the action directly it will try to find how to do it (e.g. creating a vote).
app-proxy-addr
: The address of the app where the action is being performed. You can find the proxy address by checking .
method
: The of the method we wish to execute in either the external contract or the app we specified, note that by the full signature we mean the (e.g. vote(unint256,bool,bool)
).
Create a new token.
app-proxy-addr
: The address of the app whose permissions are being managed. You can find the proxy address by checking .
app-proxy-addr
: The address of the app whose permissions are being managed. You can find the proxy address by checking .
params
: ACL parameters, with the following syntax: "<id>,<op>,<value>"
. Multiple parameters must be separated by spaces. See the ACL for the list of available operators.
Examples:
app-proxy-addr
: The address of the app whose permissions are being managed. You can find the proxy address by checking .
app-proxy-addr
: The address of the app whose permissions are being managed. You can find the proxy address by checking .
app-proxy-addr
: The address of the app whose permissions are being managed. You can find the proxy address by checking .