CI Command
Use the dedicatedci command for automated environments:
ci command runs in non-interactive mode, optimized for CI/CD pipelines.
CI Command Options
| Option | Short | Description |
|---|---|---|
--token <token> | Authentication token (required in CI) | |
--force-reindex | -f | Force complete reindex |
--only-indexing | Index only, skip full scan | |
--profile <name> | -p | Use named profile |
--api-url <url> | Override API URL (for single-tenant) | |
--config <path> | -c | Custom config file path |
GitHub Actions
Store the Secret
- Go to GitHub repo → Settings → Secrets → Actions
- Click “New repository secret”
- Name:
VIDOC_TOKEN - Value: Your token from Vidoc dashboard
GitLab CI
Store the Variable
- Go to GitLab project → Settings → CI/CD → Variables
- Add variable:
VIDOC_TOKEN - Mark as “Masked” and “Protected”
CircleCI
Jenkins
Azure DevOps
Bitbucket Pipelines
Single-Tenant Installations
For self-hosted Vidoc, include the API URL:Best Practices
Cache CLI Installation
Speed up pipelines by caching:Use Profiles for Different Environments
Viewing Results
After CI scans complete:- Go to app.vidocsecurity.com
- Select your project
- View issues in the dashboard
- Check PR-specific results in Pull Requests
Troubleshooting
”Unauthorized” in CI
- Verify
VIDOC_TOKENsecret is set correctly - Check the token hasn’t been revoked
- Ensure the token has proper permissions
Scan Timeout
For large codebases, increase your CI job timeout. First scans take longer due to initial indexing.”No files found”
Ensure the checkout step runs before the scan and the working directory is correct.Related Pages
CLI Scanning
Scan command details
Authentication
Token setup
API Keys
Manage tokens
Issues
Review results

