[GH-ISSUE #691] Adding config file/env var for changed server url does not work. #967

Closed
opened 2026-03-15 11:10:38 +03:00 by kerem · 1 comment
Owner

Originally created by @GhostDog98 on GitHub (Aug 22, 2025).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/691

Pre-submission checks

  • I have searched existing issues and this bug has not been reported yet
  • This is a bug report for asciinema CLI (not player or server)

Bug Description

Adding an alternative url does not work as per docs.

Steps to Reproduce

To reproduce:

% export ASCIINEMA_SERVER_URL=https://ascii.<>.<>

% asciinema auth              
Open the following URL in a web browser to link your install ID with your asciinema.org user account:

https://asciinema.org/connect/8a67f27d-<>

This will associate all recordings uploaded from this machine (past and future ones) to your account, and allow you to manage them (change title/theme, delete) at asciinema.org.

You can also do this by running:

local config_dir="$HOME/.config/asciinema"
local config_file="$config_dir/config.toml"
    
# Create the directory if it doesn't exist
mkdir -p "$config_dir"
    
# Write the config content
cat > "$config_file" << 'EOF'
[server]
url = "https://ascii.<>.<>"
EOF

echo "Asciinema config file created at: $config_file"

Followed by running asciinema auth.

Expected Behavior

Doing either of those procedures changes the url presented in asciinema auth.

Operating System

Darwin MacBook-Pro.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:53:26 PDT 2025; root:xnu-11417.121.6~2/RELEASE_X86_64 x86_64

asciinema CLI Version

2.4.0

Installation Method

Package manager (apt, yum, brew, etc.)

Terminal Information

Default Macos terminal
zsh

Additional Context

No response

Originally created by @GhostDog98 on GitHub (Aug 22, 2025). Original GitHub issue: https://github.com/asciinema/asciinema/issues/691 ### Pre-submission checks - [x] I have searched existing issues and this bug has not been reported yet - [x] This is a bug report for asciinema CLI (not player or server) ### Bug Description Adding an alternative url does not work as per docs. ### Steps to Reproduce To reproduce: ``` % export ASCIINEMA_SERVER_URL=https://ascii.<>.<> % asciinema auth ``` ``` Open the following URL in a web browser to link your install ID with your asciinema.org user account: https://asciinema.org/connect/8a67f27d-<> This will associate all recordings uploaded from this machine (past and future ones) to your account, and allow you to manage them (change title/theme, delete) at asciinema.org. ``` You can also do this by running: ``` local config_dir="$HOME/.config/asciinema" local config_file="$config_dir/config.toml" # Create the directory if it doesn't exist mkdir -p "$config_dir" # Write the config content cat > "$config_file" << 'EOF' [server] url = "https://ascii.<>.<>" EOF echo "Asciinema config file created at: $config_file" ``` Followed by running asciinema auth. ### Expected Behavior Doing either of those procedures changes the url presented in asciinema auth. ### Operating System Darwin MacBook-Pro.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:53:26 PDT 2025; root:xnu-11417.121.6~2/RELEASE_X86_64 x86_64 ### asciinema CLI Version 2.4.0 ### Installation Method Package manager (apt, yum, brew, etc.) ### Terminal Information Default Macos terminal zsh ### Additional Context _No response_
kerem closed this issue 2026-03-15 11:10:44 +03:00
Author
Owner

@ku1ik commented on GitHub (Aug 25, 2025):

You're using asciinema 2.4 but the configuration instructions you followed are for 3.0.

Check here https://docs.asciinema.org/manual/cli/configuration/#__tabbed_1_2 , make sure you switch the snippets to CLI 2.x.

<!-- gh-comment-id:3220009742 --> @ku1ik commented on GitHub (Aug 25, 2025): You're using asciinema 2.4 but the configuration instructions you followed are for 3.0. Check here https://docs.asciinema.org/manual/cli/configuration/#__tabbed_1_2 , make sure you switch the snippets to `CLI 2.x`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#967
No description provided.