Skip to content

Installation

This guide covers everything you need to install and configure Connix for your development environment.

  • Operating System: Linux, macOS, or Windows
  • Internet Connection: Required for API calls and package downloads
  • Git: For cloning examples and managing code
  • Node.js: 14.0 or later
  • npm: 6.0 or later (or yarn/pnpm/bun)
  • TypeScript: 4.0+ (optional but recommended)
Terminal window
npm install @connix/sdk

For TypeScript projects, types are included automatically. No additional installation needed.

Terminal window
pip install connix-sdk

Virtual Environment Setup (Recommended):

Terminal window
# Create virtual environment
python -m venv connix-env
# Activate virtual environment
# On macOS/Linux:
source connix-env/bin/activate
# On Windows:
connix-env\Scripts\activate
# Install SDK
pip install connix-sdk
Terminal window
# Initialize Go module (if not already done)
go mod init your-project-name
# Install Connix SDK
go get github.com/connix-io/connix-go

Example go.mod:

module your-project
go 1.21
require github.com/connix-io/connix-go v1.0.0

Add to your pom.xml:

<dependency>
<groupId>io.connix</groupId>
<artifactId>connix-sdk</artifactId>
<version>1.0.0</version>
</dependency>
Terminal window
vcpkg install connix-sdk

Then in your CMakeLists.txt:

find_package(connix-sdk CONFIG REQUIRED)
target_link_libraries(main PRIVATE connix-sdk::connix-sdk)

Set up your environment for seamless authentication:

Terminal window
# Add to ~/.bashrc, ~/.zshrc, or ~/.profile
export CONNIX_API_KEY="your-api-key-here"
export CONNIX_BASE_URL="https://api.connix.io" # Optional

Reload your shell:

Terminal window
source ~/.bashrc # or ~/.zshrc

Create configuration files for your projects:

.env file:

CONNIX_API_KEY=your-api-key-here
CONNIX_BASE_URL=https://api.connix.io
CONNIX_TIMEOUT=30000

connix.config.js:

export default {
apiKey: process.env.CONNIX_API_KEY,
baseURL: 'https://api.connix.io',
timeout: 30000,
retries: 3
};

Verify your installation works correctly:

Create test.js:

import { ConnixClient } from '@connix/sdk';
const client = new ConnixClient();
async function test() {
try {
const response = await client.hello('Installation Test');
console.log('✅ Connix SDK working!', response.message);
} catch (error) {
console.error('❌ Error:', error.message);
}
}
test();

Run: node test.js

Install recommended extensions:

{
"recommendations": [
"ms-vscode.vscode-typescript-next",
"ms-python.python",
"golang.go",
"redhat.java",
"ms-vscode.cpptools"
]
}
  1. Install the Connix plugin (if available)
  2. Configure SDK paths in Settings
  3. Set up environment variables in Run Configurations

For containerized development:

FROM node:18-alpine
WORKDIR /app
# Install Connix SDK
COPY package*.json ./
RUN npm install
# Copy your application
COPY . .
# Set environment variables
ENV CONNIX_API_KEY=your-api-key-here
EXPOSE 3000
CMD ["node", "index.js"]

Package not found:

  • Ensure you’re using the correct package name
  • Check your package manager is up to date
  • Verify network connectivity

Permission errors:

  • Use sudo on Linux/macOS (not recommended)
  • Better: Use virtual environments or user installs
  • On Windows: Run as Administrator

Version conflicts:

  • Update your package manager
  • Clear package cache
  • Use fresh virtual environment

SSL/TLS errors:

  • Update certificates: pip install --upgrade certifi
  • Check corporate firewall settings
  • Verify system time is correct

If you encounter issues:

  1. Check our authentication guide
  2. Search existing issues
  3. Join our Discord community
  4. Contact engineering@connix.io