### Install Bulwark via Shell Script Source: https://bulwark.studio/docs.html Automated installation script for Linux environments that handles Node.js setup, repository cloning, and service initialization. ```bash curl -fsSL https://bulwark.studio/install.sh | bash ``` -------------------------------- ### Install and Run Bulwark via npm Source: https://bulwark.studio/docs.html Manual installation steps for local development or custom environments using Git and npm. ```bash git clone https://github.com/bulwark-studio/bulwark.git cd bulwark npm install MONITOR_USER=admin MONITOR_PASS=changeme npm start ``` -------------------------------- ### Install Bulwark via Shell Script Source: https://bulwark.studio Executes the installation script for Bulwark on Linux systems. ```bash $ curl -fsSL https://bulwark.studio/install.sh | bash ``` -------------------------------- ### Install AI CLI Tools Source: https://bulwark.studio/docs.html Commands to install CLI tools for AI-powered features. Requires valid subscriptions or API keys from the respective providers. ```bash npm i -g @anthropic-ai/claude-cli ``` ```bash npm i -g @openai/codex ``` -------------------------------- ### GET /api/system Source: https://bulwark.studio/docs.html Retrieves general system information. ```APIDOC ## GET /api/system ### Description Retrieves general system information. ### Method GET ### Endpoint /api/system ### Request Example curl -b "monitor_session=TOKEN" http://localhost:3001/api/system ``` -------------------------------- ### Interact with REST API Endpoints Source: https://bulwark.studio/docs.html Examples of using cURL to perform system queries, list database tables, and execute SQL commands. All requests require a valid session token. ```bash # Example: Get system info curl -b "monitor_session=TOKEN" http://localhost:3001/api/system ``` ```bash # Example: List database tables curl -b "monitor_session=TOKEN" http://localhost:3001/api/db/tables ``` ```bash # Example: Execute SQL query curl -X POST -b "monitor_session=TOKEN" \ -H "Content-Type: application/json" \ -d '{"sql":"SELECT NOW()"}' \ http://localhost:3001/api/db/query ``` -------------------------------- ### GET /api/db/tables Source: https://bulwark.studio/docs.html Lists all database tables. ```APIDOC ## GET /api/db/tables ### Description Lists all database tables. ### Method GET ### Endpoint /api/db/tables ### Request Example curl -b "monitor_session=TOKEN" http://localhost:3001/api/db/tables ``` -------------------------------- ### Troubleshooting Commands Source: https://bulwark.studio/docs.html Common diagnostic commands for verifying environment dependencies and service status. ```bash node --version ``` ```bash lsof -i :3001 ``` ```bash ls -la /var/run/docker.sock ``` ```bash npm i -g @anthropic-ai/claude-cli && claude auth ``` ```bash claude --print "hello" ``` -------------------------------- ### Deploy Bulwark with Docker Source: https://bulwark.studio/docs.html Containerized deployment command. Requires mounting the Docker socket to enable native Docker management features. ```bash docker build -t bulwark . docker run -d -p 3001:3001 \ -e MONITOR_USER=admin \ -e MONITOR_PASS=changeme \ -v /var/run/docker.sock:/var/run/docker.sock \ bulwark ``` -------------------------------- ### POST /api/db/query Source: https://bulwark.studio/docs.html Executes a raw SQL query against the database. ```APIDOC ## POST /api/db/query ### Description Executes a raw SQL query against the database. ### Method POST ### Endpoint /api/db/query ### Request Body - **sql** (string) - Required - The SQL query to execute. ### Request Example curl -X POST -b "monitor_session=TOKEN" \ -H "Content-Type: application/json" \ -d '{"sql":"SELECT NOW()"}' \ http://localhost:3001/api/db/query ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.