Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@dxos/cli
Advanced tools
DXOS command line interface.
npm install -g @dxos/cli@main
See main docs at Agents
Agent could be started as a system daemon via cli command:
dx agent start --system
This command will run an agent as launchd
service (macOS users) or as a systemd
service (Linux users).
Other useful commands:
dx agent list --system
dx agent restart --system
dx agent stop --system
Alternatively, manual setup could be used (see below).
launchd
service (macOS users) - manual setup??NODE_PATH??
in "./init-templates/org.dxos.agent.plist" with output of command dirname $(which node)
??DX_PATH??
in "./init-templates/org.dxos.agent.plist" with output of command which dx
./init-templates/org.dxos.agent.plist
-> ~/Library/LaunchAgents/org.dxos.agent.plist
launchctl load -w ~/Library/LaunchAgents/org.dxos.agent.plist
launchd
launchctl unload -w ~/Library/LaunchAgents/org.dxos.agent.plist
~/Library/LaunchAgents/org.dxos.agent.plist
systemd
service (Linux users) - manual setup./init-templates/dxos-agent.service
and ./init-templates/pre-dxos-agent.service
-> ~/.config/systemd/user/
systemctl --user daemon-reload
to make the systemd daemon aware of the servicesystemctl --user enable dxos-agent
to enable the service to start automaticallysudo loginctl enable-linger {USERNAME}
to enable the service to start without user login (replace {USERNAME}
with the name of the user that will run the service)systemctl --user start dxos-agent
to start the serviceAgent is automatically started by each command that requires Client (to avoid this behavior use --no-agent
flag). You can use --profile
flag (default value is default
) to run agent in an isolated profile, and --foreground
to run agent in attached process.
dx agent start
see: dx agent start
Go to Composer. And create a device invitation.
Run halo join command in your terminal.
Proceed with invitation
dxos-vault
worker, then reload the Composer tab.dx agent restart
. Also useful command dx agent stop --all
dx reset --force
Both the CLI and agents can be configured to use a given profile using either the --profile
flag or DX_PROFILE
environment variable.
The CLI will automatically connect to the agent using the given profile.
The CLI can be invoked out of the Git monorepo using the bin/dev
command.
Source the following script to set an alias for dx
that can be called from any directory:
cd packages/devtools/cli
. ../../devtools/cli/scripts/dev.sh
Example:
DX_PROFILE=test dx agent start --ws=4567
NOTE: The agent
will need to be recompiled after any changes.
To build the CLI:
nx run cli:build --watch=true
The agent can be configured to expose a Websocket port using the --ws
flag that can be connected to using DXOS Devtools:
To connect devtools, set the target
query parameter to the agent's websocket URL, e.g.,
https://devtools.dxos.org?target=ws://localhost:4567
To enable logging, set LOG_FILTER
:
LOG_FILTER=info,agent:debug dx agent start -f
If the agent is run in background mode, log files will be created in /tmp/dx/run/profile/<profile name>/logs
To enable the node debugger, set NODE_OPTIONS
then open in VSCode (CMD-SHIFT-P "Attach to Node process").
NODE_OPTIONS="--inspect-brk"
Run the following command to create a gist of the debug stats.
dx debug stats --json --no-agent | gh gist create
FAQs
DXOS CLI
The npm package @dxos/cli receives a total of 434 weekly downloads. As such, @dxos/cli popularity was classified as not popular.
We found that @dxos/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.