Skip to content

Commit eff4190

Browse files
Add agent install command examples
1 parent 18136df commit eff4190

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

cloud/scanning/internal-scan.mdx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,33 @@ After creating your network, the platform will display a unique installation com
7878
Keep your installation command secure - it contains your API key and agent configuration. Anyone with this command can connect an agent to your network.
7979
</Warning>
8080

81+
You can install the agent using either Go or Docker. Replace the placeholder values with your network's installation details.
82+
83+
<Tabs>
84+
<Tab title="Go">
85+
86+
```bash
87+
PDCP_API_KEY=<VALUE> \
88+
PDCP_API_SERVER=https://api.projectdiscovery.io \
89+
PDCP_TEAM_ID=<VALUE> \
90+
go run github.com/projectdiscovery/pd-agent/cmd/pd-agent@main -agent-networks "agent-name"
91+
```
92+
93+
</Tab>
94+
<Tab title="Docker">
95+
96+
```bash
97+
docker run --network host \
98+
-e PDCP_API_KEY=<VALUE> \
99+
-e PDCP_TEAM_ID=<VALUE> \
100+
-e PDCP_API_SERVER=https://api.dev.projectdiscovery.io \
101+
projectdiscovery/pd-agent:latest \
102+
-agent-networks "agent-name"
103+
```
104+
105+
</Tab>
106+
</Tabs>
107+
81108
The installation command will:
82109
- Download and configure the agent
83110
- Establish a secure connection to ProjectDiscovery's platform

0 commit comments

Comments
 (0)