Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

command module
v2.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

README

Arcane Logo

The Official Command Line Client

Go Reference Go Report Card License


Install

This module lives inside the main Arcane repo. To build the CLI locally:

  • go install github.com/getarcaneapp/arcane/cli/v2@latest

Versions

CLI versions are tagged as cli/vX.Y.Z in the main repo. Use module tags to pin a specific release:

  • go install github.com/getarcaneapp/arcane/cli/v2@cli/vX.Y.Z

Configure

The CLI stores config in ~/.config/arcanecli.yml.

Create a starter config file (all supported keys):

  • arcane config init
  • arcane config backup (moves current config to ~/.config/arcanecli.yml.bak)

Set the Arcane server URL:

  • arcane config set server-url http://localhost:3552

Authenticate (choose one)

Option A: Device code (OIDC must be enabled for this method, as it uses your external provider.)
  • arcane auth login
Option B: API key
  • arcane config set api-key arc_xxxxxxxxxxxxx

Useful Global Flags

  • --output text|json for output mode (--json is an alias for --output json)
  • --env <id> to override the configured default environment for one command
  • --yes to auto-confirm destructive prompts
  • --no-color to disable ANSI color output
  • --request-timeout <duration> to override HTTP timeout per command

Utilities

  • arcane completion bash|zsh|fish|powershell to generate shell completions
  • arcane doctor to run local CLI diagnostics

Pagination Config

Set global and per-resource list limits in config:

pagination:
  default:
    limit: 25
  resources:
    containers:
      limit: 50
    images:
      limit: 100
    volumes:
      limit: 40
    networks:
      limit: 40

CLI precedence is:

  1. --limit
  2. pagination.resources.<resource>.limit
  3. pagination.default.limit
  4. command built-in default

You can configure limits with:

  • arcane config set default-limit 25
  • arcane config set pagination.resources.containers.limit 50 pagination.resources.images.limit 100

Legacy flag syntax remains supported:

  • arcane config set --default-limit 25
  • arcane config set --resource-limit containers=50 --resource-limit images=100

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
ci
client
Package client provides authenticated HTTP transport for the Arcane API.
Package client provides authenticated HTTP transport for the Arcane API.
config
Package config loads and persists CLI configuration in ~/.config/arcanecli.yml and session tokens in ~/.arcanecli/auth.json.
Package config loads and persists CLI configuration in ~/.config/arcanecli.yml and session tokens in ~/.arcanecli/auth.json.
logger
Package logger configures shared CLI logging.
Package logger configures shared CLI logging.
output
Package output provides styled messages and terminal tables for the CLI.
Package output provides styled messages and terminal tables for the CLI.
selfupdate
Package selfupdate verifies release checksums.
Package selfupdate verifies release checksums.
types
Package types provides the Arcane API endpoint path builders and CLI configuration types.
Package types provides the Arcane API endpoint path builders and CLI configuration types.
pkg
Package cli provides the root command and entry point for the Arcane CLI.
Package cli provides the root command and entry point for the Arcane CLI.
activities
Package activities implements the `arcane activities` command group for tracking background operations (the web UI's activity center).
Package activities implements the `arcane activities` command group for tracking background operations (the web UI's activity center).
admin/federatedcredentials
Package federatedcredentials manages workload identity federation trust rules.
Package federatedcredentials manages workload identity federation trust rules.
admin/oidcmappings
Package oidcmappings manages OIDC claim-to-role mappings.
Package oidcmappings manages OIDC claim-to-role mappings.
admin/roles
Package roles manages roles and user assignments.
Package roles manages roles and user assignments.
vulnerabilities
Package vulnerabilities provides image vulnerability scanning commands.
Package vulnerabilities provides image vulnerability scanning commands.
webhooks
Package webhooks implements the `arcane webhooks` command group for per-environment inbound webhooks that trigger actions.
Package webhooks implements the `arcane webhooks` command group for per-environment inbound webhooks that trigger actions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL