@oxlayer/cli
v0.0.35
Published
OxLayer CLI - Install and manage OxLayer SDK packages
Downloads
144
Readme
OxLayer SDK Installer
A command-line tool for downloading and installing OxLayer SDK packages.
Installation
npm install -g @oxlayer/cliOr use without installing:
npx @oxlayer/cli <command>Commands
oxlayer login
Authenticate with the OxLayer Control Panel using your API key.
oxlayer loginYou can also provide the key directly:
oxlayer login --key oxl_your_api_key_hereoxlayer status
Show your current authentication status and SDK installation.
oxlayer statusWith verbose output:
oxlayer status --verboseoxlayer install
Download and install SDK packages.
# Install latest version
oxlayer install
# Install specific version
oxlayer install 2025_02_08_001
# Install specific packages
oxlayer install --packages backend-sdk frontend-sdk
# Install with options
oxlayer install --save --environment productionOptions:
[version]- Specific version to install (default: latest)-p, --packages <packages...>- Specific packages to install-e, --environment <env>- Environment (development|staging|production)--dry-run- Show what would be installed without installing-f, --force- Force reinstall even if already installed--save- Add to dependencies in package.json--save-dev- Add to devDependencies in package.json
oxlayer resolve
Resolve and display capability configuration for the current project.
oxlayer resolveWith usage examples:
oxlayer resolve --verboseoxlayer logout
Remove stored API key and configuration.
oxlayer logoutUsage Example
# 1. Authenticate
oxlayer login
# 2. Check your project's capabilities
oxlayer resolve
# 3. Install the SDK
oxlayer install
# 4. Install dependencies
pnpm installConfiguration
The installer stores its configuration in ~/.oxlayer/config.json:
{
"apiKey": "oxl_...",
"environment": "development",
"vendorDir": ".capabilities-vendor"
}You can also use environment variables:
OXLAYER_API_KEY- Your API keyOXLAYER_API_ENDPOINT- Custom API endpoint (default: https://api.oxlayer.dev)
Vendor Directory
Installed packages are stored in .capabilities-vendor/<version>/ in your project:
.my-project/
├── .capabilities-vendor/
│ └── 2025_02_08_001/
│ ├── foundation/
│ ├── capabilities/
│ └── frontend/
├── package.json
└── src/Security Notes
- Your API key is stored locally in
~/.oxlayer/config.json - Never commit
.capabilities-vendor/to version control - Add
.capabilities-vendor/to your.gitignore
License
MIT © OxLayer
