p202 click-filter set

Switch the built-in checks on or off, and choose the repeat window

New in 1.9.79Writessupports --staged
All commands

01Run it

Straight from the command's own help.

p202 click-filter set --repeat-window 6h
p202 click-filter set --sign-in-addresses 0 # count clicks from your own sign-in address

02What you get

Pick the shape you need. People get a table. Add --json, --csv or --ndjson for scripts, or -q for ids only. An AI agent gets compact JSON without asking. All output formats

03Build your command

Pick values and the command line writes itself, quoted and ready to paste.

p202 click-filter set

Set flags below; the command updates as you type.

04Flags

5 flags, plus the global flags every command takes.

FlagWhat it does
--crawler-rangesstring1 filters clicks from the built-in search engine crawler ranges, 0 counts them: 0, 1
01
--repeat-visitsstring1 filters a repeat click from one address within the repeat window, 0 counts it: 0, 1
01
--repeat-windowstringRepeat window (1h, 6h, 24h, 7d); 24h lasts until the daily cleanup
1h6h24h7d
--sign-in-addressesstring1 filters clicks from an address a user of this install last signed in from, 0 counts them: 0, 1
01
--user-idstringAccount whose click filter this is (default: the API key's own user)

05How it works

Changes only the settings given; the rest keep their values. Changes apply to clicks from now on. The defaults are every check on and a 24h window, which keeps an address until the daily cleanup.

06For agents

Running this from an agent

  • Read the same facts as JSON: p202 commands click-filter set --json.
  • With AI_AGENT, CLAUDECODE or another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with a hint.
  • Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure, 6 no Pro licence on the install.
  • This command writes. Add --staged to record it as a proposal a person applies with p202 change apply.
p202 commands click-filter set --json
{
  "path": "p202 click-filter set",
  "use": "set",
  "short": "Switch the built-in checks on or off, and choose the repeat window",
  "long": "Changes only the settings given; the rest keep their values. Changes apply to clicks from now on.\nThe defaults are every check on and a 24h window, which keeps an address until the daily cleanup.",
  "runnable": true,
  "example": "p202 click-filter set --repeat-window 6h\n  p202 click-filter set --sign-in-addresses 0     # count clicks from your own sign-in address",
  "flags": [
    {
      "name": "crawler-ranges",
      "type": "string",
      "default": "",
      "usage": "1 filters clicks from the built-in search engine crawler ranges, 0 counts them: 0, 1",
      "allowed_values": [
        "0",
        "1"
      ],
      "required": false
    },
    {
      "name": "repeat-visits",
      "type": "string",
      "default": "",
      "usage": "1 filters a repeat click from one address within the repeat window, 0 counts it: 0, 1",
      "allowed_values": [
        "0",
        "1"
      ],
      "required": false
    },
    {
      "name": "repeat-window",
      "type": "string",
      "default": "",
      "usage": "Repeat window (1h, 6h, 24h, 7d); 24h lasts until the daily cleanup",
      "allowed_values": [
        "1h",
        "6h",
        "24h",
        "7d"
      ],
      "required": false
    },
    {
      "name": "sign-in-addresses",
      "type": "string",
      "default": "",
      "usage": "1 filters clicks from an address a user of this install last signed in from, 0 counts them: 0, 1",
      "allowed_values": [
        "0",
        "1"
      ],
      "required": false
    },
    {
      "name": "user-id",
      "type": "string",
      "default": "",
      "usage": "Account whose click filter this is (default: the API key's own user)",
      "required": false
    }
  ]
}