devhub init
- Initialize a devhub projectdevhub whoami
- Display the connected cell agent pubkeydevhub status
- Display the known contexts and settingsdevhub connection
- Manage connection to Conductordevhub config
- Manage devhub project configdevhub publish
- Publish a locally defined targetdevhub install
- Install a DevHub assetdevhub zomes
- Manage the local project's zome targets
Create a devhub.json
config file.
Example of a new devhub.json
config
{
"version": "1",
"zomes": {}
}
Display cell agent
Example result
[shell]$ devhub whoami
uhCAkh4Ycahw023cJUemyA2q10I1_k1oPgKSw3L69HJJeH9QpCGG7
Information about the connection and local project.
-d, --data
- output as a data format
Example result
[shell]$ devhub whoami
You are agent uhCAkh4Ycahw023cJUemyA2q10I1_k1oPgKSw3L69HJJeH9QpCGG7
Project CWD: /home/username/project-name/
Project assets
Zomes:
example_zome
Example Zome - Lorem ipsum dolor sit amet, consectetur adipiscing elit
Manage connection settings
-g, --global
- Manage the global connection configuration
devhub connection status
- Display connection statusdevhub connection set
- Set devhub connection settingsdevhub connection update
- Update a single connection setting
Locations that will be checked for connection.json
.devhub/
~/.devhub/
Display information about connection settings and result.
State | Configured | Attempted | Succeeded |
---|---|---|---|
CONNECTED |
✓ | ✓ | ✓ |
CONNECTED_FAILED |
✓ | ✓ | ✗ |
UNCONNECTED |
✓ | ✗ | ✗ |
NO_CONNECTION_INFO |
✗ | ✗ | ✗ |
Example
{
"state": "CONNECTED",
"connection": {
"app_port": 24246,
"app_token": "813fad07c6925a5d150adafe22e6299c90d33f16d33e96edb123a26563ee428879cff52f72743075e6a0817afc3829c6572b40dabfe633b470774781d6d31023"
}
}
Set the connnection properties.
<port>
- Holochain Conductor's app port<token>
- DevHub auth token
-f, --force
- Overwrite config if it already exists
Update a single property of the connection configuration.
<property>
- Config property (app_port
orapp_token
)<value>
- The property's new value
Manage local project settings
devhub config add
- Add inline zome config
Add an DevHub configuration to the project config.
<type>
- Config type (zome
,dna
, orapp
)<target-id>
- Unique ID for this target<path>
- Path to target config file
Example devhub.json
after command devhub config add zome mere_memory zomes/mere_memory/zome.json
{
"version": "1",
"zomes": {
"mere_memory": "zomes/mere_memory/zome.json",
}
}
See API/Publish.md
See API/Install.md
See API/Zomes.md